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.
Rendering priority:
- Per-field
renderfunction stored in theHyleFilterField(fromuse_filterschange map) - Matching entry in the
HyleComponentscontext (registered viause_hyle_components) - Built-in default based on field type:
Boolean→<select>with Any / Yes / NoReference→<select>populated from pre-resolved optionsArray<Reference>→<fieldset>with one checkbox per option- Everything else →
<input type="text">(or theinput.kindhint from the blueprint)
§Props
state— theHyleFiltersStatefromuse_filtersfield_key— the field name to render
§Props
For details, see the props struct definition.