pub struct GridRowAction { /* private fields */ }Expand description
A button at the end of every row, such as Edit or Delete.
Implementations§
Source§impl GridRowAction
impl GridRowAction
Sourcepub fn new(
label: impl Into<String>,
icon: IconName,
on_click: impl Fn(&Vec<Value>) + 'static,
) -> GridRowAction
pub fn new( label: impl Into<String>, icon: IconName, on_click: impl Fn(&Vec<Value>) + 'static, ) -> GridRowAction
A button with this icon that runs on_click with its row. Screen readers hear
label and the row, such as “Delete Acme”, from
key_column or else the first column.
Trait Implementations§
Source§impl Clone for GridRowAction
impl Clone for GridRowAction
Source§fn clone(&self) -> GridRowAction
fn clone(&self) -> GridRowAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GridRowAction
impl !Send for GridRowAction
impl !Sync for GridRowAction
impl !UnwindSafe for GridRowAction
impl Freeze for GridRowAction
impl Unpin for GridRowAction
impl UnsafeUnpin for GridRowAction
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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