Skip to main content

HyleTableFilters

Function HyleTableFilters 

Source
pub fn HyleTableFilters() -> Element
Expand description

Format a raw value for display. For reference lookups the outcome already contains resolved labels, so we use display_value with an empty blueprint fallback, relying on the HyleConfig context.

Because HyleTableBody runs inside a Dioxus component tree that has HyleConfig in context, we read the blueprint from context. Renders Apply / Clear filter buttons.

Must be rendered inside a HyleTablePanel so the buttons are within the enclosing <form method="get">.

When JS is enabled, Apply triggers the form’s onsubmit (which calls filter_apply and prevents navigation). Clear reads HyleFiltersState from context (set by HyleTablePanel) to call filter_clear directly, also preventing default so no navigation occurs.