FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    presentation

    module · ferroui-controls-treedatagrid · v0.5.0

    module presentation
    

    Presentation/: the presentation of a core source to the control: the view columns of the source's columns, the rows that realize the cells, the selection interaction and sorting.

    The reference's presentation is typed by the model (TreeDataGridPresentation<TModel>) and created through a visitor of the source; the port's presentation is untyped (docs/porting/treedatagrid.md, 3.1): models are untyped values, the values of neutral columns are read through the core's erased access to its columns, and the typed operations the presentation needs of a model type (creating selections, reading a cell selection, following the source's columns) come from the model type's registration (register_tree_data_grid_model).

    The adapters of the reference (Adapters/CoreConversions.cs, Adapters/LegacySourcePresentation.cs) fold into this module: a source whose columns are the control crate's view columns is presented by the same presentation, which uses their views directly.

    View source

    Contents

    Availability

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