Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 (*SelectSearch) IconSvg ¶
func (c *SelectSearch) IconSvg() map[string]string
func (*SelectSearch) Render ¶
func (c *SelectSearch) Render() *dom.Element
func (*SelectSearch) RenderCSS ¶
func (c *SelectSearch) RenderCSS() string
Click to show internal directories.
Click to hide internal directories.