pub struct TabsContent { /* private fields */ }Implementations§
Source§impl TabsContent
impl TabsContent
pub fn new(value: impl Into<Arc<str>>) -> Self
pub fn label(self, label: impl Into<Arc<str>>) -> Self
pub fn labelled_by_element(self, labelled_by_element: Option<u64>) -> Self
pub fn force_mount(self, force_mount: bool) -> Self
pub fn layout(self, layout: LayoutStyle) -> Self
Sourcepub fn into_element<H: UiHost, I, T>(
self,
cx: &mut ElementContext<'_, H>,
root: &TabsRoot,
f: impl FnOnce(&mut ElementContext<'_, H>) -> I,
) -> Option<AnyElement>where
I: IntoIterator<Item = T>,
T: IntoUiElement<H>,
pub fn into_element<H: UiHost, I, T>(
self,
cx: &mut ElementContext<'_, H>,
root: &TabsRoot,
f: impl FnOnce(&mut ElementContext<'_, H>) -> I,
) -> Option<AnyElement>where
I: IntoIterator<Item = T>,
T: IntoUiElement<H>,
Renders a TabsContent (tab panel) subtree if it is active or force-mounted.
Trait Implementations§
Source§impl Clone for TabsContent
impl Clone for TabsContent
Source§fn clone(&self) -> TabsContent
fn clone(&self) -> TabsContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TabsContent
impl RefUnwindSafe for TabsContent
impl Send for TabsContent
impl Sync for TabsContent
impl Unpin for TabsContent
impl UnsafeUnpin for TabsContent
impl UnwindSafe for TabsContent
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