ValueColumnBase
struct · ferroui-controls-treedatagrid · v0.5.0
struct ValueColumnBase<M: TreeModel, V: Clone + 'static>
ColumnBase<TModel, TValue>.
Members
new
fn new(header: Option<BoxedValue>, accessor: Accessor<M, V>, comparer: Option<ValueComparer<V>>, width: Option<GridLength>, options: Rc<dyn IColumnOptions<M>>) -> Self
The base of a column of the value accessor reads, sorted by comparer (None: the values
do not compare, and the column sorts only with the comparisons of its options).
column_base
fn column_base(self: &Self) -> &ColumnBase<M>
The state every column has.
value_selector
fn value_selector(self: &Self) -> &Rc<dyn Fn(&Rc<M>) -> V>
The function that selects the value of the column from a model (ValueSelector).
accessor
fn accessor(self: &Self) -> &Accessor<M, V>
The accessor of the value (Binding: its getter, setter and observed path).
can_write
fn can_write(self: &Self) -> bool
Whether the cells of the column write their values back (Binding.Write is not null).
get_comparison
fn get_comparison(self: &Self, direction: ListSortDirection) -> Option<Comparison<M>>
The comparison that sorts the models by the column in direction, or None.
create_binding_expression
fn create_binding_expression(self: &Self, model: &Rc<M>) -> Rc<AccessorBinding<M, V>>
The binding of a cell of model (CreateBindingExpression).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyClassDefaultsErasedDestructorIntoEitherDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.