Struct freya_components::VirtualScrollViewProps
source · pub struct VirtualScrollViewProps<'a, 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: 'a> VirtualScrollViewProps<'a, T>
impl<'a, T: 'a> VirtualScrollViewProps<'a, T>
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
.