Skip to main content

HyleTableFilters

Function HyleTableFilters 

Source
pub fn HyleTableFilters() -> Element
Expand description

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.