pub struct GridLayoutProps {
pub layout: RwSignal<Vec<LayoutItem>>,
pub cols: Signal<i32>,
pub row_height: Signal<f32>,
pub margin: Signal<(i32, i32)>,
pub compaction: Signal<CompactionType>,
pub keyboard_cell_nudge: bool,
pub render_item: fn(LayoutItem) -> View,
}Expand description
Props for the GridLayout component.
§Required Props
- layout:
RwSignal<Vec<LayoutItem>> - cols:
impl Into<Signal<i32>> - row_height:
impl Into<Signal<f32>> - margin: [
impl Into<Signal<(i32, i32)>>](Signal<(i32, i32)>) - compaction:
impl Into<Signal<CompactionType>> - render_item: [
fn(LayoutItem) -> View]
§Optional Props
- keyboard_cell_nudge:
bool
Fields§
§layout: RwSignal<Vec<LayoutItem>>§cols: Signal<i32>§row_height: Signal<f32>§margin: Signal<(i32, i32)>§compaction: Signal<CompactionType>§keyboard_cell_nudge: bool§render_item: fn(LayoutItem) -> ViewImplementations§
Source§impl GridLayoutProps
impl GridLayoutProps
Sourcepub fn builder() -> GridLayoutPropsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> GridLayoutPropsBuilder<((), (), (), (), (), (), ())>
Create a builder for building GridLayoutProps.
On the builder, call .layout(...), .cols(...), .row_height(...), .margin(...), .compaction(...), .keyboard_cell_nudge(...)(optional), .render_item(...) to set the values of the fields.
Finally, call .build() to create the instance of GridLayoutProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridLayoutProps
impl !RefUnwindSafe for GridLayoutProps
impl !Send for GridLayoutProps
impl !Sync for GridLayoutProps
impl Unpin for GridLayoutProps
impl UnsafeUnpin for GridLayoutProps
impl !UnwindSafe for GridLayoutProps
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> 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