Components Forms
Comboboxlive
A select you can search. A live component: Python filters the options as you type.
A live component: its state is kept on the server, and each click or keystroke is answered by its Python class. Put @pbscripts in your layout.
$ pyblade ui:add combobox
Search and pick
Props
Written as attributes of <pb-ui.combobox>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| name | str | "" | The name the value is posted under |
| options | list | [] | Strings, or {"value", "label"} |
| value | str | "" | The value picked |
| prompt | str | "Select an option" | Shown while nothing is picked |
| search_prompt | str | "Search ..." | Shown in its search field |
| empty | str | "Nothing found." | Shown when nothing matches |