pub struct Tab<C = Schema> { /* private fields */ }Expand description
One tab of a Tabs block: a titled trigger and the fields or columns it shows.
use tablo_core::{Color, Field, Tab};
let user = User::fields();
Tab::new("About")
.icon(tablo_ui::icons::USER)
.badge("New")
.badge_color(Color::Info)
.schema(Field::text(user.bio()).multiline(4));Implementations§
Source§impl Tab<()>
impl Tab<()>
Sourcepub fn columns<M>(self, children: impl IntoDetail<M>) -> Tab<Detail<M>>
pub fn columns<M>(self, children: impl IntoDetail<M>) -> Tab<Detail<M>>
Holds a detail page’s columns and blocks.
Source§impl<F> Tab<Schema<F>>
impl<F> Tab<Schema<F>>
Sourcepub fn visible_when(
self,
watched: &impl Watched<F>,
values: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn visible_when( self, watched: &impl Watched<F>, values: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Shows the block and every field it holds only while watched posts one of
values, as TextField::visible_when shows a
field.
Trait Implementations§
Auto Trait Implementations§
impl<C = Schema> !RefUnwindSafe for Tab<C>
impl<C = Schema> !UnwindSafe for Tab<C>
impl<C> Forget for Tab<C>
impl<C> Freeze for Tab<C>where
C: Freeze,
impl<C> Move for Tab<C>
impl<C> Send for Tab<C>where
C: Send,
impl<C> Sync for Tab<C>where
C: Sync,
impl<C> Unpin for Tab<C>where
C: Unpin,
impl<C> UnsafeUnpin for Tab<C>where
C: UnsafeUnpin,
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