pub struct SubMenuButton<'a> {
pub button: Button<'a>,
pub sub_menu: SubMenu,
}
Fields§
Implementations§
Source§impl<'a> SubMenuButton<'a>
impl<'a> SubMenuButton<'a>
Sourcepub const RIGHT_ARROW: &'static str = "⏵"
pub const RIGHT_ARROW: &'static str = "⏵"
The default right arrow symbol: "⏵"
pub fn new(atoms: impl IntoAtoms<'a>) -> Self
Create a new submenu button from a Button
.
Use Button::right_text
and SubMenuButton::RIGHT_ARROW
to add the default right
arrow symbol.
Sourcepub fn config(self, config: MenuConfig) -> Self
pub fn config(self, config: MenuConfig) -> Self
Set the config for the submenu.
The close behavior will not affect the current button, but the buttons in the submenu.
Auto Trait Implementations§
impl<'a> Freeze for SubMenuButton<'a>
impl<'a> !RefUnwindSafe for SubMenuButton<'a>
impl<'a> Send for SubMenuButton<'a>
impl<'a> Sync for SubMenuButton<'a>
impl<'a> Unpin for SubMenuButton<'a>
impl<'a> !UnwindSafe for SubMenuButton<'a>
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