pub struct ButtonGroup { /* private fields */ }Expand description
Buttons joined into one control.
Implementations§
Source§impl ButtonGroup
impl ButtonGroup
pub fn new() -> Self
Sourcepub fn class(self, v: impl Into<String>) -> Self
pub fn class(self, v: impl Into<String>) -> Self
Extra classes for the outer element. They win over the defaults.
Sourcepub fn with(self, part: impl Part) -> Self
pub fn with(self, part: impl Part) -> Self
Add an attribute (class(..), id(..), aria(..), …) or a child.
pub fn full_width(self, v: bool) -> Self
Trait Implementations§
Source§impl Default for ButtonGroup
impl Default for ButtonGroup
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonGroup
impl !Sync for ButtonGroup
impl !UnwindSafe for ButtonGroup
impl Forget for ButtonGroup
impl Freeze for ButtonGroup
impl Move for ButtonGroup
impl Send for ButtonGroup
impl Unpin for ButtonGroup
impl UnsafeUnpin for ButtonGroup
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