pub struct NavigationMenuTrigger { /* private fields */ }Implementations§
pub fn new(value: impl Into<Arc<str>>) -> Self
pub fn label(self, label: impl Into<Arc<str>>) -> Self
pub fn disabled(self, disabled: bool) -> Self
Sourcepub fn into_element<H: UiHost>(
self,
cx: &mut ElementContext<'_, H>,
ctx: &NavigationMenuContext,
pressable: PressableProps,
pointer_region: PointerRegionProps,
f: impl FnOnce(&mut ElementContext<'_, H>, PressableState, bool) -> Vec<AnyElement>,
) -> AnyElement
pub fn into_element<H: UiHost>( self, cx: &mut ElementContext<'_, H>, ctx: &NavigationMenuContext, pressable: PressableProps, pointer_region: PointerRegionProps, f: impl FnOnce(&mut ElementContext<'_, H>, PressableState, bool) -> Vec<AnyElement>, ) -> AnyElement
Renders a trigger subtree wiring Radix-like hover and open/close behavior.
This helper is skin-free: pass PressableProps and render children in f.
Trait Implementations§
Source§fn clone(&self) -> NavigationMenuTrigger
fn clone(&self) -> NavigationMenuTrigger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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