FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridPresentationOptions

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridPresentationOptions
    

    The factories of the view columns of the presentation keys of a source's columns (TreeDataGridPresentationOptions<TModel>); keys compare ordinally.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    this

    fn this(self: &Self) -> Rc<Self>
    

    The shared options.

    Source

    set_column

    fn set_column(self: &Self, key: impl Into<String>, factory: impl Fn(&Rc<dyn CoreColumn>) -> ColumnRef + 'static)
    

    Registers the factory of the columns whose presentation key is key (Columns[key] = factory).

    Source

    with_column

    fn with_column(self: Rc<Self>, key: impl Into<String>, factory: impl Fn(&Rc<dyn CoreColumn>) -> ColumnRef + 'static) -> Rc<Self>
    

    Adds a factory and returns the options (a collection initializer of the reference).

    Source

    remove_column

    fn remove_column(self: &Self, key: &str) -> bool
    

    Removes the factory of key; false when there is none.

    Source

    column

    fn column(self: &Self, key: &str) -> Option<ColumnPresentationFactory>
    

    The factory of key (Columns.TryGetValue).

    Source

    keys

    fn keys(self: &Self) -> Vec<String>
    

    The keys that have a factory.

    Source

    Trait implementations

    Availability

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