FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextColumn

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TextColumn<M: TreeModel, V: Clone + PartialEq + 'static>
    

    TextColumn<TModel, TValue>.

    View source

    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.

    Source

    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.

    Source

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

    Source

    options

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

    The options of the column.

    Source

    value_base

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

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

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

    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.