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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScrollViewProps<'a>
impl<'a> !Send for ScrollViewProps<'a>
impl<'a> !Sync for ScrollViewProps<'a>
impl<'a> Unpin for ScrollViewProps<'a>
impl<'a> !UnwindSafe for ScrollViewProps<'a>
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