pub struct MenuProps {
pub classes: Signal<String>,
pub test_attr: Option<TestAttr>,
pub children: Children,
}Expand description
Props for the Menu component.
A simple menu, for any type of vertical navigation. https://bulma.io/documentation/components/menu/
§Required Props
- children:
Children- Child content of the menu (MenuLabel, MenuList, etc.).
§Optional Props
- classes:
impl Into<Signal<String>>- Extra classes to apply to the Bulma “menu” container.
- test_attr:
impl Into<TestAttr>-
Optional test attribute (renders as data-* attribute) on the root
When provided as a &str or String, this becomes
data-testid="value". You can also pass a fullTestAttrto override the attribute key (e.g.,data-cy).
-
Fields§
§classes: Signal<String>Extra classes to apply to the Bulma “menu” container.
test_attr: Option<TestAttr>Optional test attribute (renders as data-* attribute) on the root
When provided as a &str or String, this becomes data-testid="value".
You can also pass a full TestAttr to override the attribute key (e.g., data-cy).
children: ChildrenChild content of the menu (MenuLabel, MenuList, etc.).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuProps
impl !RefUnwindSafe for MenuProps
impl Send for MenuProps
impl !Sync for MenuProps
impl Unpin for MenuProps
impl UnsafeUnpin for MenuProps
impl !UnwindSafe for MenuProps
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
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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.