pub struct EuvAutoCompleteProps {Show 16 fields
pub options: Vec<EuvAutoCompleteOption>,
pub value: Signal<String>,
pub placeholder: &'static str,
pub label: &'static str,
pub id: &'static str,
pub name: &'static str,
pub form: &'static str,
pub autocomplete: &'static str,
pub required: bool,
pub invalid: bool,
pub disabled: bool,
pub read_only: bool,
pub aria_label: &'static str,
pub aria_describedby: &'static str,
pub on_change: Option<Rc<dyn Fn(&'static str)>>,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_auto_complete component.
The text in the field lives in a caller-owned Signal so the component
takes part in two-way binding; the open state of the suggestion panel is
owned by the component itself.
Fields§
§options: Vec<EuvAutoCompleteOption>The suggestions offered to the user.
value: Signal<String>The text currently held by the field.
placeholder: &'static strThe placeholder shown while the field is empty.
label: &'static strThe label rendered above the field.
An empty string renders the field without a label.
id: &'static strThe id used to associate the label with the input.
An empty string uses the component-generated id.
name: &'static strThe form field name submitted with the input value.
form: &'static strThe id of the owning form; an empty value uses the nearest ancestor form.
autocomplete: &'static strThe browser autofill hint; an empty value enables the browser default.
required: boolWhether the input participates in required form validation.
invalid: boolWhether the input is currently invalid.
disabled: boolWhether the input and suggestion list are disabled.
read_only: boolWhether the input text is read-only while suggestions remain selectable.
aria_label: &'static strThe accessible name used when no visible label is rendered.
aria_describedby: &'static strSpace-separated ids naming the input’s descriptive text.
on_change: Option<Rc<dyn Fn(&'static str)>>The callback invoked with the typed text after every change.
The text is handed over as a 'static slice, so the component
leaks one small string per distinct value the user types.
on_select: Option<Rc<dyn Fn(&'static str)>>The callback invoked with the value of the picked suggestion.