pub struct TanStackTableState {Show 13 fields
pub sorting: Vec<TanStackSortingSpec>,
pub column_filters: Vec<TanStackColumnFilter>,
pub global_filter: Option<Value>,
pub pagination: Option<TanStackPaginationState>,
pub grouping: Vec<String>,
pub expanded: Option<TanStackExpandedState>,
pub row_pinning: Option<TanStackRowPinningState>,
pub row_selection: Option<BTreeMap<String, bool>>,
pub column_pinning: Option<TanStackColumnPinningState>,
pub column_order: Vec<String>,
pub column_visibility: Option<BTreeMap<String, bool>>,
pub column_sizing: BTreeMap<String, f32>,
pub column_sizing_info: Option<TanStackColumnSizingInfoState>,
/* private fields */
}Fields§
§sorting: Vec<TanStackSortingSpec>§column_filters: Vec<TanStackColumnFilter>§global_filter: Option<Value>§pagination: Option<TanStackPaginationState>§grouping: Vec<String>§expanded: Option<TanStackExpandedState>§row_pinning: Option<TanStackRowPinningState>§row_selection: Option<BTreeMap<String, bool>>§column_pinning: Option<TanStackColumnPinningState>§column_order: Vec<String>§column_visibility: Option<BTreeMap<String, bool>>§column_sizing: BTreeMap<String, f32>§column_sizing_info: Option<TanStackColumnSizingInfoState>Implementations§
Source§impl TanStackTableState
impl TanStackTableState
pub fn from_json(value: &Value) -> Result<TanStackTableState, Error>
pub fn from_table_state(state: &TableState) -> TanStackTableState
pub fn to_json(&self) -> Result<Value, Error>
pub fn from_table_state_with_shape( state: &TableState, source: &TanStackTableState, ) -> TanStackTableState
pub fn from_table_state_with_row_models<'a, TData>( state: &TableState, core_row_model: &RowModel<'a, TData>, grouped_row_model: Option<&GroupedRowModel>, ) -> Result<TanStackTableState, TanStackStateError>
pub fn from_table_state_with_row_model<'a, TData>( state: &TableState, core_row_model: &RowModel<'a, TData>, ) -> Result<TanStackTableState, TanStackStateError>
pub fn from_table_state_with_row_models_and_shape<'a, TData>( state: &TableState, core_row_model: &RowModel<'a, TData>, grouped_row_model: Option<&GroupedRowModel>, source: &TanStackTableState, ) -> Result<TanStackTableState, TanStackStateError>
pub fn from_table_state_with_row_model_and_shape<'a, TData>( state: &TableState, core_row_model: &RowModel<'a, TData>, source: &TanStackTableState, ) -> Result<TanStackTableState, TanStackStateError>
pub fn to_table_state(&self) -> Result<TableState, TanStackStateError>
pub fn to_table_state_with_row_models<'a, TData>( &self, core_row_model: &RowModel<'a, TData>, grouped_row_model: Option<&GroupedRowModel>, ) -> Result<TableState, TanStackStateError>
pub fn to_table_state_with_row_model<'a, TData>( &self, core_row_model: &RowModel<'a, TData>, ) -> Result<TableState, TanStackStateError>
Trait Implementations§
Source§impl Clone for TanStackTableState
impl Clone for TanStackTableState
Source§fn clone(&self) -> TanStackTableState
fn clone(&self) -> TanStackTableState
Returns a duplicate 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 Debug for TanStackTableState
impl Debug for TanStackTableState
Source§impl Default for TanStackTableState
impl Default for TanStackTableState
Source§fn default() -> TanStackTableState
fn default() -> TanStackTableState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TanStackTableState
impl<'de> Deserialize<'de> for TanStackTableState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TanStackTableState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TanStackTableState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TanStackTableState
impl Serialize for TanStackTableState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TanStackTableState
impl RefUnwindSafe for TanStackTableState
impl Send for TanStackTableState
impl Sync for TanStackTableState
impl Unpin for TanStackTableState
impl UnsafeUnpin for TanStackTableState
impl UnwindSafe for TanStackTableState
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