pub struct Grid<C = Schema> { /* private fields */ }Expand description
A block of cols columns, clamped to 1..12, laying out a form’s fields or a detail page’s
columns.
Implementations§
Source§impl<F> Grid<Schema<F>>
impl<F> Grid<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§
Source§impl<M> IntoDetail<M> for Grid<Detail<M>>
impl<M> IntoDetail<M> for Grid<Detail<M>>
fn into_detail(self) -> Detail<M>
Source§impl<M> IntoDetail<M> for Grid<()>
impl<M> IntoDetail<M> for Grid<()>
fn into_detail(self) -> Detail<M>
Source§impl<F> IntoSchema<F> for Grid<Schema<F>>
impl<F> IntoSchema<F> for Grid<Schema<F>>
fn into_schema(self) -> Schema<F>
Source§impl<F> IntoSchema<F> for Grid<()>
impl<F> IntoSchema<F> for Grid<()>
fn into_schema(self) -> Schema<F>
Auto Trait Implementations§
impl<C> Freeze for Grid<C>where
C: Freeze,
impl<C> RefUnwindSafe for Grid<C>where
C: RefUnwindSafe,
impl<C> Send for Grid<C>where
C: Send,
impl<C> Sync for Grid<C>where
C: Sync,
impl<C> Unpin for Grid<C>where
C: Unpin,
impl<C> UnsafeUnpin for Grid<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Grid<C>where
C: UnwindSafe,
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