Struct patternfly_yew::components::table::TableProperties
source · 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 copy of the value. Read more
1.0.0 · source§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§fn eq(&self, other: &TableProperties<C, M>) -> bool
fn eq(&self, other: &TableProperties<C, M>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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> !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§
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> 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.