FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CheckBoxColumn

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct CheckBoxColumn<M: TreeModel>
    

    CheckBoxColumn<TModel>: a column of a bool? value.

    View source

    Members

    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.

    Source

    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)).

    Source

    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.

    Source

    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)).

    Source

    options

    fn options(self: &Self) -> &Rc<CheckBoxColumnOptions<M>>
    

    The options of the column.

    Source

    value_base

    fn value_base(self: &Self) -> &ValueColumnBase<M, Option<bool>>
    

    The value part of the column (ColumnBase<TModel, bool?>).

    Source

    is_three_state

    fn is_three_state(self: &Self) -> bool
    

    Whether the check boxes have an indeterminate state.

    Source

    set_header

    fn set_header(self: &Self, value: Option<BoxedValue>)
    

    Sets the column header.

    Source

    get_value

    fn get_value(self: &Self, model: &Rc<M>) -> Option<bool>
    

    The value of the column for model.

    Source

    create_cell_of

    fn create_cell_of(self: &Self, model: &Rc<M>) -> CellRef
    

    The cell of model.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.