#[repr(C)]pub struct TabHeader {
pub tabs: StringVec,
pub active_tab: usize,
pub on_click: OptionTabOnClick,
}Fields§
§tabs: StringVec§active_tab: usize§on_click: OptionTabOnClickImplementations§
Source§impl TabHeader
impl TabHeader
pub fn create(tabs: StringVec) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn set_active_tab(&mut self, active_tab: usize)
pub fn with_active_tab(self, active_tab: usize) -> Self
pub fn set_on_click<C: Into<TabOnClickCallback>>( &mut self, refany: RefAny, on_click: C, )
pub fn with_on_click<C: Into<TabOnClickCallback>>( self, refany: RefAny, on_click: C, ) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabHeader
impl RefUnwindSafe for TabHeader
impl Send for TabHeader
impl Sync for TabHeader
impl Unpin for TabHeader
impl UnwindSafe for TabHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more