pub struct TableProperties<C, M>{Show 15 fields
pub class: Classes,
pub id: AttrValue,
pub caption: Option<String>,
pub mode: TableMode,
pub borders: bool,
pub header: Option<VChild<TableHeader<C>>>,
pub full_width_details: bool,
pub entries: M,
pub grid: Option<TableGridMode>,
pub onexpand: OnToggleCallback<C, M>,
pub onrowclick: Option<Callback<<M as TableModel<C>>::Item>>,
pub row_selected: Option<Callback<<M as TableModel<C>>::Item, bool>>,
pub ouia_id: Option<String>,
pub ouia_type: OuiaComponentType,
pub ouia_safe: OuiaSafe,
}Expand description
Properties for Table
Fields§
§class: Classes§id: AttrValue§caption: Option<String>§mode: TableMode§borders: boolBorders or borderless.
Defaults to borders being enabled.
header: Option<VChild<TableHeader<C>>>§full_width_details: bool§entries: M§grid: Option<TableGridMode>When to switch to grid mode
onexpand: OnToggleCallback<C, M>§onrowclick: Option<Callback<<M as TableModel<C>>::Item>>§row_selected: Option<Callback<<M as TableModel<C>>::Item, bool>>Callback stating whether a given row is selected or not.
ouia_id: Option<String>OUIA Component id
ouia_type: OuiaComponentTypeOUIA Component Type
ouia_safe: OuiaSafeOUIA Component Safe
Implementations§
Source§impl<C, M> TableProperties<C, M>
impl<C, M> TableProperties<C, M>
pub fn is_expandable(&self) -> bool
pub fn are_columns_expandable(&self) -> bool
Trait Implementations§
Source§impl<C, M> Clone for TableProperties<C, M>
impl<C, M> Clone for TableProperties<C, M>
Source§fn clone(&self) -> TableProperties<C, M>
fn clone(&self) -> TableProperties<C, M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C, M> PartialEq for TableProperties<C, M>
impl<C, M> PartialEq for TableProperties<C, M>
Source§impl<C, M> Properties for TableProperties<C, M>
impl<C, M> Properties for TableProperties<C, M>
impl<C, M> StructuralPartialEq for TableProperties<C, M>
Auto Trait Implementations§
impl<C, M> Freeze for TableProperties<C, M>where
M: Freeze,
impl<C, M> !RefUnwindSafe for TableProperties<C, M>
impl<C, M> !Send for TableProperties<C, M>
impl<C, M> !Sync for TableProperties<C, M>
impl<C, M> Unpin for TableProperties<C, M>where
M: Unpin,
impl<C, M> !UnwindSafe for TableProperties<C, M>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.