pub struct TabsProps {
pub id: Option<Cow<'static, str>>,
pub tabsets: Vec<TabSet>,
pub default_tab_index: usize,
pub orientation: TabsOrientation,
pub class: Option<Cow<'static, str>>,
pub attrs: AttrMap,
}Expand description
Tabs — maps to CSS class .tabs.
Fields§
§id: Option<Cow<'static, str>>Unique DOM id — required for the WASM controller.
tabsets: Vec<TabSet>The tab sets (tab buttons + panels).
default_tab_index: usize1-based index of the initially active tab.
orientation: TabsOrientation§class: Option<Cow<'static, str>>§attrs: AttrMapImplementations§
Source§impl TabsProps
impl TabsProps
pub const __BASECOAT_EXTEND_FIELD: Option<&'static str>
Sourcepub fn builder() -> TabsPropsBuilder
pub fn builder() -> TabsPropsBuilder
Create a builder for this prop struct.
Trait Implementations§
Source§impl From<TabsPropsBuilder> for TabsProps
impl From<TabsPropsBuilder> for TabsProps
Source§fn from(b: TabsPropsBuilder) -> Self
fn from(b: TabsPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TabsProps
impl RefUnwindSafe for TabsProps
impl Send for TabsProps
impl Sync for TabsProps
impl Unpin for TabsProps
impl UnsafeUnpin for TabsProps
impl UnwindSafe for TabsProps
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