Struct freya::components::VirtualScrollViewProps
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,
pub scroll_controller: Option<&'a ScrollController>,
/* private fields */
}Expand description
VirtualScrollView component properties.
Fields§
§builder_values: Option<T>Custom values to pass to the builder function.
direction: StringDirection of the VirtualScrollView, vertical or horizontal.
height: StringHeight of the VirtualScrollView.
width: StringWidth of the VirtualScrollView.
padding: StringPadding of the VirtualScrollView.
show_scrollbar: boolShow the scrollbar, visible by default.
scroll_with_arrows: boolEnable scrolling with arrow keys.
scroll_controller: Option<&'a ScrollController>Optional scroll controller.
Implementations§
§impl<'a, T> VirtualScrollViewProps<'a, T>where
T: 'a,
impl<'a, T> VirtualScrollViewProps<'a, T>where T: 'a,
pub 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), .scroll_controller(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of VirtualScrollViewProps.