#[non_exhaustive]pub enum ActionLayout {
Inline,
Menu,
}Expand description
Where a table puts a row’s actions: its custom actions, View, Edit and Delete.
use tablo_core::{ActionLayout, Table, TextColumn, lens};
Table::new(TextColumn::new(lens!(Post.title))).action_layout(ActionLayout::Menu);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Inline
Side by side at the end of the row: View, Edit and Delete as icons, a custom action by its label.
Menu
In a menu behind one button at the end of the row, Delete last.
Trait Implementations§
Source§impl Clone for ActionLayout
impl Clone for ActionLayout
impl Copy for ActionLayout
Source§impl Debug for ActionLayout
impl Debug for ActionLayout
Source§impl Default for ActionLayout
impl Default for ActionLayout
impl Eq for ActionLayout
Source§impl PartialEq for ActionLayout
impl PartialEq for ActionLayout
impl StructuralPartialEq for ActionLayout
Auto Trait Implementations§
impl Forget for ActionLayout
impl Freeze for ActionLayout
impl RefUnwindSafe for ActionLayout
impl Send for ActionLayout
impl Sync for ActionLayout
impl Unpin for ActionLayout
impl UnsafeUnpin for ActionLayout
impl UnwindSafe for ActionLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.