Struct ymc::menu::MenuProps [−][src]
Props for Menu
Documentation properties and events
Fields
open: bool
Changing this prop re-renders the component.
For general usage, consider using show
method provided by
WeakComponentLink<Menu>
via menu_link
anchor: Option<HtmlElement>
quick: bool
absolute: bool
fixed: bool
x: Option<isize>
y: Option<isize>
force_group_selection: bool
fullwidth: bool
wrap_focus: bool
inner_role: String
multi: bool
activatable: bool
onopened: Callback<()>
Binds to opened
event on menu-surface
See events docs to learn more.
onclosed: Callback<()>
Binds to closed
event on menu-surface
See events docs to learn more.
onaction: Callback<ListIndex>
Binds to action
event on list
See events docs to learn more.
onselected: Callback<SelectedDetail>
Binds to selected
event on list
See events docs to learn more.
link: WeakComponentLink<Menu>
WeakComponentLink
for Menu
which provides the following methods
get_focused_item_index(&self) -> usize
focus_item_at_index(&self, index: usize)
select(&self, index: &JsValue)
show(&self)
close(&self)
See WeakComponentLink
documentation for more information
children: Children
Trait Implementations
impl Clone for MenuProps
[src]
impl PartialEq<MenuProps> for MenuProps
[src]
impl Properties for MenuProps
[src]
type Builder = MenuPropsBuilder<MenuPropsBuilderStep_build>
Builder that will be used to construct properties
fn builder() -> Self::Builder
[src]
impl StructuralPartialEq for MenuProps
[src]
Auto Trait Implementations
impl !RefUnwindSafe for MenuProps
impl !Send for MenuProps
impl !Sync for MenuProps
impl Unpin for MenuProps
impl !UnwindSafe for MenuProps
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,