Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClsSsBox css.Class = "ss-box" ClsSsToggle css.Class = "ss-toggle" ClsSsDropdown css.Class = "ss-dropdown" ClsSsHeader css.Class = "ss-header" ClsSsIcon css.Class = "ss-icon" ClsSsSearch css.Class = "ss-search" ClsSsOptions css.Class = "ss-options" ClsSsOption css.Class = "ss-option" ClsSsLabel css.Class = "ss-label" ClsSsDesc css.Class = "ss-desc" )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
ID string // unique identifier, returned in OnSelect
Label string // visible text
Description string // optional badge shown on the right
}
Option represents a selectable item.
type SelectSearch ¶
type SelectSearch struct {
dom.Element // value embed — NEVER pointer (TinyGo heap constraint)
Placeholder string // text shown when nothing is selected
Options []Option // initial static options
OnSelect func(id, description string) // called when user picks an option
OnSearch func(term string) []Option // called when ALL local options are filtered out
// contains filtered or unexported fields
}
func SSRInstance ¶ added in v0.1.2
func SSRInstance() *SelectSearch
func (*SelectSearch) IconSvg ¶
func (c *SelectSearch) IconSvg() map[string]string
func (*SelectSearch) OnMount ¶ added in v0.1.2
func (c *SelectSearch) OnMount()
No build tag needed — TinyGo eliminates this as dead code in SSR builds.
func (*SelectSearch) Render ¶
func (c *SelectSearch) Render() *dom.Element
func (*SelectSearch) RenderCSS ¶
func (c *SelectSearch) RenderCSS() *Stylesheet
Click to show internal directories.
Click to hide internal directories.