pub struct ButtonCell {
pub text: String,
pub act: String,
pub icon: Option<Icon>,
pub keys: Vec<String>,
pub variant: Option<ButtonVariant>,
pub disabled: Option<Disabled>,
}Expand description
A table cell drawn as a sm button. Its click sends an action event
with act and the row as item, and doesn’t select the row.
Fields§
§text: StringThe label.
act: StringThe action name sent.
icon: Option<Icon>A leading icon.
keys: Vec<String>Keycaps after the label.
variant: Option<ButtonVariant>The chrome.
disabled: Option<Disabled>Dimmed and silent; a reason is the tooltip.
Implementations§
Source§impl ButtonCell
impl ButtonCell
Trait Implementations§
Source§impl Clone for ButtonCell
impl Clone for ButtonCell
Source§impl Debug for ButtonCell
impl Debug for ButtonCell
Source§impl Default for ButtonCell
impl Default for ButtonCell
impl Eq for ButtonCell
Source§impl From<ButtonCell> for Cell
impl From<ButtonCell> for Cell
Source§fn from(b: ButtonCell) -> Self
fn from(b: ButtonCell) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ButtonCell
impl PartialEq for ButtonCell
Source§impl Serialize for ButtonCell
impl Serialize for ButtonCell
impl StructuralPartialEq for ButtonCell
Auto Trait Implementations§
impl Freeze for ButtonCell
impl RefUnwindSafe for ButtonCell
impl Send for ButtonCell
impl Sync for ButtonCell
impl Unpin for ButtonCell
impl UnsafeUnpin for ButtonCell
impl UnwindSafe for ButtonCell
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.