Skip to main content

popconfirm_toggle_handler

Function popconfirm_toggle_handler 

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

Builds the click handler that toggles the bubble open and closed.

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 bubble.

§Returns

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