pub struct TailwindClassesPreset;
Trait Implementations§
source§impl Clone for TailwindClassesPreset
impl Clone for TailwindClassesPreset
source§fn clone(&self) -> TailwindClassesPreset
fn clone(&self) -> TailwindClassesPreset
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 TableClassesProvider for TailwindClassesPreset
impl TableClassesProvider for TailwindClassesPreset
source§fn thead_row(&self, template_classes: &str) -> String
fn thead_row(&self, template_classes: &str) -> String
Get the classes for the thead row.
The
prop_class
parameter contains the classes specified in the
thead_row_class
prop of the [TableContent
] component.source§fn thead_cell(&self, sort: ColumnSort, template_classes: &str) -> String
fn thead_cell(&self, sort: ColumnSort, template_classes: &str) -> String
Get the classes for the thead cells.
The
sort
parameter contains the sort state of the column.
The macro_class
parameter contains the classes specified in the head_class
macro attribute of the field.source§fn thead_cell_inner(&self) -> String
fn thead_cell_inner(&self) -> String
Get the classes for the thead cells’ inner element.
source§fn row(
&self,
row_index: usize,
selected: bool,
template_classes: &str
) -> String
fn row( &self, row_index: usize, selected: bool, template_classes: &str ) -> String
Get the classes for the body rows.
The
row_index
parameter contains the index of the row. The first row has index 0.
The selected
parameter indicates whether the row is selected.
The prop_class
parameter contains the classes specified in the row_class
prop of the [TableContent
] component.source§fn cell(&self, template_classes: &str) -> String
fn cell(&self, template_classes: &str) -> String
Get the classes for the body cells.
The
macro_class
parameter contains the classes specified in the class
macro attribute of the field.source§fn thead(&self, prop_class: &str) -> String
fn thead(&self, prop_class: &str) -> String
Get the class attribute for the thead.
The
prop_class
parameter contains the classes specified in the
thead_class
prop of the [TableContent
] component.source§fn tbody(&self, prop_class: &str) -> String
fn tbody(&self, prop_class: &str) -> String
Get the classes for the tbody.
The
prop_class
parameter contains the classes specified in the
tbody_class
prop of the [TableContent
] component.source§fn loading_cell(&self, prop_class: &str) -> String
fn loading_cell(&self, prop_class: &str) -> String
Get the classes for the elements inside of the cells of rows that are currently
being loaded.
The
prop_class
parameter contains the classes specified in the
loading_cell_class
prop of the [TableContent
] component.source§fn loading_cell_inner(&self, row_index: usize, prop_class: &str) -> String
fn loading_cell_inner(&self, row_index: usize, prop_class: &str) -> String
Get the classes for the elements inside of the cells of rows that are currently
being loaded. Usually this will be some loading indicator like a sceleton bar.
The
prop_class
parameter contains the classes specified in the
loading_cell_inner_class
prop of the [TableContent
] component.impl Copy for TailwindClassesPreset
Auto Trait Implementations§
impl RefUnwindSafe for TailwindClassesPreset
impl Send for TailwindClassesPreset
impl Sync for TailwindClassesPreset
impl Unpin for TailwindClassesPreset
impl UnwindSafe for TailwindClassesPreset
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