CheckBoxColumn
struct · ferroui-controls-treedatagrid · v0.5.0
struct CheckBoxColumn<M: TreeModel>
CheckBoxColumn<TModel>: a column of a bool? value.
Members
newnew_three_statewith_three_statefrom_coreoptionsvalue_baseis_three_stateset_headerget_valuecreate_cell_of
new
fn new(header: Option<BoxedValue>, accessor: Accessor<M, bool>, width: Option<GridLength>, options: Option<Rc<CheckBoxColumnOptions<M>>>) -> Rc<Self>
A two-state check box column of a bool (CheckBoxColumn(header, Expression<Func<TModel, bool>>, setter, width, options)): the accessor's setter makes the column editable, and a
cleared value writes false.
new_three_state
fn new_three_state(header: Option<BoxedValue>, accessor: Accessor<M, Option<bool>>, width: Option<GridLength>, options: Option<Rc<CheckBoxColumnOptions<M>>>) -> Rc<Self>
A three-state check box column of a bool? (CheckBoxColumn(header, Expression<Func<TModel, bool?>>, setter, width, options)).
with_three_state
fn with_three_state(header: Option<BoxedValue>, accessor: Accessor<M, Option<bool>>, width: Option<GridLength>, options: Option<Rc<CheckBoxColumnOptions<M>>>, is_three_state: bool) -> Rc<Self>
A check box column of a bool? with the given number of states.
from_core
fn from_core(column: &ValueColumn<M, Option<bool>>, options: Rc<CheckBoxColumnOptions<M>>) -> Rc<Self>
The view of a neutral check box column of the core (CheckBoxColumn(CheckBoxColumn<TModel>, options)).
options
fn options(self: &Self) -> &Rc<CheckBoxColumnOptions<M>>
The options of the column.
value_base
fn value_base(self: &Self) -> &ValueColumnBase<M, Option<bool>>
The value part of the column (ColumnBase<TModel, bool?>).
is_three_state
fn is_three_state(self: &Self) -> bool
Whether the check boxes have an indeterminate state.
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
Sets the column header.
get_value
fn get_value(self: &Self, model: &Rc<M>) -> Option<bool>
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.