Struct freya::prelude::ScrollViewProps
source · 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: 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§
source§impl<'a> Properties for ScrollViewProps<'a>
impl<'a> Properties for ScrollViewProps<'a>
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer