Skip to main content

close

Function close 

Source
pub fn close(
    theme: &Theme,
    key: impl Into<SharedString>,
    when: Close,
) -> Stateful<Div>
Expand description

A tab’s ×, for the key its tab was built with. The click is the caller’s, and has to stop propagating or the tab under it takes the press as well.