pub struct ToggleGroupRootProps {
pub kind: ToggleGroupKind,
pub disabled: MaybeSignal<bool>,
pub roving_focus: MaybeSignal<bool>,
pub should_loop: MaybeSignal<bool>,
pub orientation: MaybeSignal<Orientation>,
pub direction: MaybeSignal<Direction>,
pub node_ref: NodeRef<AnyElement>,
pub attrs: Vec<(&'static str, Attribute)>,
pub children: ChildrenFn,
pub as_child: MaybeProp<bool>,
}Expand description
Props for the ToggleGroupRoot component.
§Required Props
- kind:
ToggleGroupKind - attrs: [
Attributes] - children:
ChildrenFn
§Optional Props
- disabled:
impl Into<MaybeSignal<bool>> - roving_focus:
impl Into<MaybeSignal<bool>> - should_loop:
impl Into<MaybeSignal<bool>> - orientation:
impl Into<MaybeSignal<Orientation>> - direction:
impl Into<MaybeSignal<Direction>> - node_ref:
NodeRef<AnyElement> - as_child:
impl Into<MaybeProp<bool>>
Fields§
§kind: ToggleGroupKind§disabled: MaybeSignal<bool>§roving_focus: MaybeSignal<bool>§should_loop: MaybeSignal<bool>§orientation: MaybeSignal<Orientation>§direction: MaybeSignal<Direction>§node_ref: NodeRef<AnyElement>§attrs: Vec<(&'static str, Attribute)>§children: ChildrenFn§as_child: MaybeProp<bool>Implementations§
Source§impl ToggleGroupRootProps
impl ToggleGroupRootProps
Sourcepub fn builder() -> ToggleGroupRootPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ToggleGroupRootPropsBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building ToggleGroupRootProps.
On the builder, call .kind(...), .disabled(...)(optional), .roving_focus(...)(optional), .should_loop(...)(optional), .orientation(...)(optional), .direction(...)(optional), .node_ref(...)(optional), .attrs(...)(optional), .children(...), .as_child(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ToggleGroupRootProps.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToggleGroupRootProps
impl !Send for ToggleGroupRootProps
impl !Sync for ToggleGroupRootProps
impl !UnwindSafe for ToggleGroupRootProps
impl Freeze for ToggleGroupRootProps
impl Unpin for ToggleGroupRootProps
impl UnsafeUnpin for ToggleGroupRootProps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more