Struct freya_components::ScrollViewProps
source · pub struct ScrollViewProps<'a> {
pub children: Element<'a>,
pub direction: String,
pub height: String,
pub width: String,
pub padding: String,
pub show_scrollbar: bool,
pub scroll_with_arrows: bool,
}Expand description
ScrollView component properties.
Fields§
§children: Element<'a>Inner children for the ScrollView.
direction: StringDirection of the ScrollView, vertical or horizontal.
height: StringHeight of the ScrollView.
width: StringWidth of the ScrollView.
padding: StringPadding of the ScrollView.
show_scrollbar: boolShow the scrollbar, visible by default.
scroll_with_arrows: boolEnable scrolling with arrow keys.
Implementations§
source§impl<'a> ScrollViewProps<'a>
impl<'a> ScrollViewProps<'a>
sourcepub fn builder() -> ScrollViewPropsBuilder<'a, ((), (), (), (), (), (), ())>
pub fn builder() -> ScrollViewPropsBuilder<'a, ((), (), (), (), (), (), ())>
Create a builder for building ScrollViewProps.
On the builder, call .children(...)(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 ScrollViewProps.