Struct freya::components::VirtualScrollViewProps
source · pub struct VirtualScrollViewProps<'a, T>where
T: 'a,{
pub builder_values: Option<T>,
pub direction: String,
pub height: String,
pub width: String,
pub padding: String,
pub show_scrollbar: bool,
pub scroll_with_arrows: bool,
/* private fields */
}
Expand description
VirtualScrollView
component properties.
Fields§
§builder_values: Option<T>
Custom values to pass to the builder function.
direction: String
Direction of the VirtualScrollView, vertical
or horizontal
.
height: String
Height of the VirtualScrollView.
width: String
Width of the VirtualScrollView.
padding: String
Padding of the VirtualScrollView.
show_scrollbar: bool
Show the scrollbar, visible by default.
scroll_with_arrows: bool
Enable scrolling with arrow keys.
Implementations§
source§impl<'a, T> VirtualScrollViewProps<'a, T>where
T: 'a,
impl<'a, T> VirtualScrollViewProps<'a, T>where T: 'a,
sourcepub fn builder(
) -> VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
pub fn builder( ) -> VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
Create a builder for building VirtualScrollViewProps
.
On the builder, call .length(...)
, .item_size(...)
, .builder(...)
, .builder_values(...)
(optional), .direction(...)
(optional), .height(...)
(optional), .width(...)
(optional), .padding(...)
(optional), .show_scrollbar(...)
(optional), .scroll_with_arrows(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of VirtualScrollViewProps
.
Trait Implementations§
source§impl<'a, T> Properties for VirtualScrollViewProps<'a, T>where
T: 'a,
impl<'a, T> Properties for VirtualScrollViewProps<'a, T>where T: 'a,
§type Builder = VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
type Builder = VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
source§fn builder() -> <VirtualScrollViewProps<'a, T> as Properties>::Builder
fn builder() -> <VirtualScrollViewProps<'a, T> as Properties>::Builder
Create a builder for this component.
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for VirtualScrollViewProps<'a, T>
impl<'a, T> !Send for VirtualScrollViewProps<'a, T>
impl<'a, T> !Sync for VirtualScrollViewProps<'a, T>
impl<'a, T> Unpin for VirtualScrollViewProps<'a, T>where T: Unpin,
impl<'a, T> !UnwindSafe for VirtualScrollViewProps<'a, T>
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