TextColumn
struct · ferroui-controls-treedatagrid · v0.5.0
struct TextColumn<M: TreeModel, V: Clone + PartialEq + 'static>
TextColumn<TModel, TValue>.
Members
new
fn new(header: Option<BoxedValue>, accessor: Accessor<M, V>, width: Option<GridLength>, options: Option<Rc<TextColumnOptions<M>>>) -> Rc<Self>
A text column of the value accessor reads (TextColumn(header, getter, [setter,] width, options)); the accessor's setter makes the column's cells editable. width None is
Auto.
from_core
fn from_core(column: &ValueColumn<M, V>, options: Rc<TextColumnOptions<M>>) -> Rc<Self>
The view of a neutral text column of the core (TextColumn(ValueColumn<TModel, TValue>, options)): its header, value and width, with the view options options.
with_comparer
fn with_comparer(header: Option<BoxedValue>, accessor: Accessor<M, V>, comparer: Option<ValueComparer<V>>, width: Option<GridLength>, options: Option<Rc<TextColumnOptions<M>>>) -> Rc<Self>
A text column whose values compare with comparer (None: the column sorts only with the
comparisons of its options).
options
fn options(self: &Self) -> &Rc<TextColumnOptions<M>>
The options of the column.
value_base
fn value_base(self: &Self) -> &ValueColumnBase<M, V>
The value part of the column (ColumnBase<TModel, TValue>).
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
Sets the column header.
get_value
fn get_value(self: &Self, model: &Rc<M>) -> V
The value of the column for model.
create_cell_of
fn create_cell_of(self: &Self, model: &Rc<M>) -> CellRef
The cell of model.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIViewColumn<M>Borrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherINotifyPropertyChangedIColumnIUpdateColumnLayoutICellColumnIColumnOf<M>IValueColumn<M>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.