TreeDataGridPresentationOptions
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridPresentationOptions
The factories of the view columns of the presentation keys of a source's columns
(TreeDataGridPresentationOptions<TModel>); keys compare ordinally.
Members
new
fn new() -> Rc<Self>
this
fn this(self: &Self) -> Rc<Self>
The shared options.
set_column
fn set_column(self: &Self, key: impl Into<String>, factory: impl Fn(&Rc<dyn CoreColumn>) -> ColumnRef + 'static)
Registers the factory of the columns whose presentation key is key (Columns[key] = factory).
with_column
fn with_column(self: Rc<Self>, key: impl Into<String>, factory: impl Fn(&Rc<dyn CoreColumn>) -> ColumnRef + 'static) -> Rc<Self>
Adds a factory and returns the options (a collection initializer of the reference).
remove_column
fn remove_column(self: &Self, key: &str) -> bool
Removes the factory of key; false when there is none.
column
fn column(self: &Self, key: &str) -> Option<ColumnPresentationFactory>
The factory of key (Columns.TryGetValue).
keys
fn keys(self: &Self) -> Vec<String>
The keys that have a factory.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqITreeDataGridPresentationOptions
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.