pub struct TabsProps {
pub titles: Vec<String>,
pub icons: Vec<Option<String>>,
pub selected: usize,
}Expand description
Native tabbed container (docs/tabs.md). titles are the tab labels in page order;
selected is the active tab index. Toolkits present a native tab widget and show the
selected page.
Fields§
§titles: Vec<String>§icons: Vec<Option<String>>Optional bundled-image name per tab (docs/tabs.md), same convention as
NavMenuProps::icons. Rendered where the backend’s tab widget shows icons (the iOS
UITabBar, the Android tab strip); ignored by backends whose tabs are text-only.
selected: usizeTrait Implementations§
impl StructuralPartialEq for TabsProps
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