pub struct ExpandingState { /* private fields */ }Expand description
Complete expanding state for the table.
Tracks which rows are expanded and provides configuration for automatic expansion behavior.
Implementations§
Source§impl ExpandingState
impl ExpandingState
Sourcepub fn new() -> ExpandingState
pub fn new() -> ExpandingState
Creates a new empty expanding state.
§Returns
ExpandingState: A new expanding state with no rows expanded.
Sourcepub fn all_expanded() -> ExpandingState
pub fn all_expanded() -> ExpandingState
Creates an expanding state with all rows expanded.
§Returns
ExpandingState: A new expanding state with expand-all enabled.
Sourcepub fn with_auto_expand_parents(self, auto: bool) -> ExpandingState
pub fn with_auto_expand_parents(self, auto: bool) -> ExpandingState
Sourcepub fn with_auto_expand_depth(self, depth: usize) -> ExpandingState
pub fn with_auto_expand_depth(self, depth: usize) -> ExpandingState
Sourcepub fn is_expanded(&self, row_id: &DataTableRowId) -> bool
pub fn is_expanded(&self, row_id: &DataTableRowId) -> bool
Sourcepub fn expanded_count(&self) -> usize
pub fn expanded_count(&self) -> usize
Sourcepub fn has_expanded(&self) -> bool
pub fn has_expanded(&self) -> bool
Returns whether any rows are explicitly expanded.
§Returns
bool: Whether expand-all is set or individual rows are expanded.
Sourcepub fn expanded_ids(&self) -> impl Iterator<Item = &DataTableRowId>
pub fn expanded_ids(&self) -> impl Iterator<Item = &DataTableRowId>
Returns the expanded row IDs.
§Returns
impl Iterator<Item = &DataTableRowId>: An iterator over expanded row IDs.
Sourcepub fn is_expand_all(&self) -> bool
pub fn is_expand_all(&self) -> bool
Sourcepub fn expand(&mut self, row_id: DataTableRowId)
pub fn expand(&mut self, row_id: DataTableRowId)
Sourcepub fn collapse(&mut self, row_id: &DataTableRowId)
pub fn collapse(&mut self, row_id: &DataTableRowId)
Sourcepub fn toggle(&mut self, row_id: DataTableRowId)
pub fn toggle(&mut self, row_id: DataTableRowId)
Sourcepub fn expand_many(&mut self, row_ids: impl IntoIterator<Item = DataTableRowId>)
pub fn expand_many(&mut self, row_ids: impl IntoIterator<Item = DataTableRowId>)
Sourcepub fn collapse_many(
&mut self,
row_ids: impl IntoIterator<Item = DataTableRowId>,
)
pub fn collapse_many( &mut self, row_ids: impl IntoIterator<Item = DataTableRowId>, )
Sourcepub fn expand_all(&mut self)
pub fn expand_all(&mut self)
Expands all rows.
Sourcepub fn collapse_all(&mut self)
pub fn collapse_all(&mut self)
Collapses all rows.
Sourcepub fn toggle_all(&mut self)
pub fn toggle_all(&mut self)
Toggles expand all state.
Trait Implementations§
Source§impl Clone for ExpandingState
impl Clone for ExpandingState
Source§fn clone(&self) -> ExpandingState
fn clone(&self) -> ExpandingState
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 ExpandingState
impl Debug for ExpandingState
Source§impl Default for ExpandingState
impl Default for ExpandingState
Source§fn default() -> ExpandingState
fn default() -> ExpandingState
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExpandingState
impl PartialEq for ExpandingState
impl Eq for ExpandingState
impl StructuralPartialEq for ExpandingState
Auto Trait Implementations§
impl Freeze for ExpandingState
impl RefUnwindSafe for ExpandingState
impl Send for ExpandingState
impl Sync for ExpandingState
impl Unpin for ExpandingState
impl UnsafeUnpin for ExpandingState
impl UnwindSafe for ExpandingState
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> 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§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.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.