pub struct TabItem<'a, T> { /* private fields */ }
Implementations§
source§impl<'a, T: AsRef<str>> TabItem<'a, T>
impl<'a, T: AsRef<str>> TabItem<'a, T>
pub fn new(name: T) -> Self
sourcepub fn opened(self, opened: &'a mut bool) -> Self
pub fn opened(self, opened: &'a mut bool) -> Self
Will open or close the tab.
True to display the tab. Tab item is visible by default.
sourcepub fn flags(self, flags: TabItemFlags) -> Self
pub fn flags(self, flags: TabItemFlags) -> Self
Set the flags of the tab item.
Flags are empty by default