pub struct FormLayout { /* private fields */ }Expand description
The layout of a resource’s create and edit forms: the grid’s columns, the components in it, and the page’s content width. See the module documentation.
Implementations§
Source§impl FormLayout
impl FormLayout
Sourcepub fn columns(self, columns: u8) -> Self
pub fn columns(self, columns: u8) -> Self
The number of columns of the form’s grid, from the lg breakpoint, as Filament’s
->columns(3). Between 1 and 12. Without it, the grid has one column.
Sourcepub fn schema<I, C>(self, components: I) -> Self
pub fn schema<I, C>(self, components: I) -> Self
The form’s components, in display order, as Filament’s ->schema([...]): sections,
groups and field names. Each call adds after the components already given.
Sourcepub fn max_content_width(self, width: Width) -> Self
pub fn max_content_width(self, width: Width) -> Self
The widest the form’s page may be, as a Filament page’s getMaxContentWidth().
Width::Full lets a settings form use the whole width beside the sidebar.
Sourcepub fn column_count(&self) -> Option<u8>
pub fn column_count(&self) -> Option<u8>
The number of columns, if set.
Sourcepub fn components(&self) -> &[Component]
pub fn components(&self) -> &[Component]
The form’s components, in display order.
Sourcepub fn content_width(&self) -> Option<Width>
pub fn content_width(&self) -> Option<Width>
The page’s content width, if set.
Trait Implementations§
Source§impl Clone for FormLayout
impl Clone for FormLayout
Source§impl Debug for FormLayout
impl Debug for FormLayout
Source§impl Default for FormLayout
impl Default for FormLayout
impl Eq for FormLayout
Source§impl PartialEq for FormLayout
impl PartialEq for FormLayout
impl StructuralPartialEq for FormLayout
Auto Trait Implementations§
impl Forget for FormLayout
impl Freeze for FormLayout
impl Move for FormLayout
impl RefUnwindSafe for FormLayout
impl Send for FormLayoutwhere
RawVecInner: Send,
impl Sync for FormLayoutwhere
RawVecInner: Sync,
impl Unpin for FormLayout
impl UnsafeUnpin for FormLayout
impl UnwindSafe for FormLayoutwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more