Skip to main content

time_picker_toggle_handler

Function time_picker_toggle_handler 

Source
pub fn time_picker_toggle_handler<E: 'static>(
    open: Signal<bool>,
) -> Option<Rc<dyn Fn(E)>>
Expand description

Builds the click handler that opens and closes the panel.

The event type is a parameter so the DOM-free test suite can drive the handler with a stand-in event; the component always instantiates it with Event.

§Arguments

  • Signal<bool> - The open state of the panel.

§Returns

  • Option<Rc<dyn Fn(E)>> - The toggle click handler.