Struct freya::prelude::ScrollViewProps
pub struct ScrollViewProps<'a> {
pub children: Option<VNode<'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: Option<VNode<'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§
§impl<'a> ScrollViewProps<'a>
impl<'a> ScrollViewProps<'a>
pub 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§
§impl<'a> Properties for ScrollViewProps<'a>
impl<'a> Properties for ScrollViewProps<'a>
§type Builder = ScrollViewPropsBuilder<'a, ((), (), (), (), (), (), ())>
type Builder = ScrollViewPropsBuilder<'a, ((), (), (), (), (), (), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
§fn builder() -> <ScrollViewProps<'a> as Properties>::Builder
fn builder() -> <ScrollViewProps<'a> as Properties>::Builder
Create a builder for this component.
§unsafe fn memoize(&self, other: &ScrollViewProps<'a>) -> bool
unsafe fn memoize(&self, other: &ScrollViewProps<'a>) -> bool
Memoization can only happen if the props are valid for the ’static lifetime Read more
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