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: String
Direction of the ScrollView, vertical
or horizontal
.
height: String
Height of the ScrollView.
width: String
Width of the ScrollView.
padding: String
Padding of the ScrollView.
show_scrollbar: bool
Show the scrollbar, visible by default.
scroll_with_arrows: bool
Enable 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
.