co-autocomplete
This content is not available in your language yet.
Ver código
<co-autocomplete label="Ejemplo"></co-autocomplete> Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
clearable | clearable | boolean | true | |
debounce | debounce | number | 300 | Debounce time in ms for coSearch |
disabled | disabled | boolean | false | |
emptyText | empty-text | string | 'No results' | Message when options are empty after search |
helperText | helper-text | string | undefined | — | |
iconLeft | icon-left | string | undefined | — | |
label | label | string | undefined | — | |
loading | loading | boolean | false | |
minChars | min-chars | number | 1 | Minimum characters before emitting coSearch |
multiple | multiple | boolean | false | |
options | options | AutocompleteOption[] | string | string[] | '[]' | Pre-loaded or server-returned options |
placeholder | placeholder | string | 'Search…' | |
secondaryLabel | secondary-label | string | undefined | — | |
status | status | "default" | "error" | "info" | "success" | "warning" | 'default' | |
value | value | string | string[] | '' |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|---|---|---|---|
coChange | string | string[] | ✓ | ✓ | |
coClear | void | ✓ | ✓ | |
coSearch | string | ✓ | ✓ | Fired when the user types (after debounce). Host should fetch and set options. |
Slots
Este componente no expone slots.
CSS Parts
Este componente no expone CSS parts.
CSS Custom Properties
Este componente no expone CSS custom properties.