pub fn FilterField(_: FilterFieldProps) -> ElementExpand description
A reactive filter input derived from HyleFiltersState.
Looks up the field definition in state.fields, reads the current value
from state.form_data, and calls state.set_field on change.
By default it renders:
Booleanfields →<label>wrapping a<select>with “Any / Yes / No”Referencefields →<label>wrapping a<select>populated from pre-resolvedoptionsArray<Reference>fields →<fieldset>/<legend>with one checkbox per option- Everything else →
<label>wrapping an<input type="text">(or theinput.kindhint from the blueprint, e.g."search","number")
Pass render to replace the default for a specific field:
ⓘ
FilterField {
state: filters,
field_key: "role",
render: |props| rsx! { MySelectInput { props } },
}§Props
state— theHyleFiltersStatefromuse_filtersfield_key— the field name to renderrender— optional custom renderer receivingHyleFilterFieldProps
§Props
For details, see the props struct definition.