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. It stops mouse-down propagation, so a press on it neither clicks nor picks up the tab under it.