FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridTemplateColumn

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridTemplateColumn
    

    A template column (TreeDataGridTemplateColumn): cells built from a data template, given directly or as resource keys.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    with_resource_keys

    fn with_resource_keys(header: Option<BoxedValue>, cell_template_resource_key: ResourceKey, cell_editing_template_resource_key: Option<ResourceKey>) -> Rc<Self>
    

    A column of the templates of the resource keys (TreeDataGridTemplateColumn(header, cellTemplateResourceKey, cellEditingTemplateResourceKey)).

    Source

    cell_template

    fn cell_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Source

    set_cell_template

    fn set_cell_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    cell_editing_template

    fn cell_editing_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Source

    set_cell_editing_template

    fn set_cell_editing_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    cell_template_resource_key

    fn cell_template_resource_key(self: &Self) -> Option<ResourceKey>
    

    Source

    set_cell_template_resource_key

    fn set_cell_template_resource_key(self: &Self, value: Option<ResourceKey>)
    

    Source

    cell_editing_template_resource_key

    fn cell_editing_template_resource_key(self: &Self) -> Option<ResourceKey>
    

    Source

    set_cell_editing_template_resource_key

    fn set_cell_editing_template_resource_key(self: &Self, value: Option<ResourceKey>)
    

    Source

    text_search_binding

    fn text_search_binding(self: &Self) -> Option<Rc<dyn BindingBase>>
    

    The binding of the text a type-ahead search reads ([AssignBinding] TextSearchBinding).

    Source

    set_text_search_binding

    fn set_text_search_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
    

    Source

    create_typed

    fn create_typed<M: ferroui_treedatagrid_core::accessor::TreeModel>(self: &Self) -> Rc<TemplateColumn<M>>
    

    The template column of a typed source of models of M (CreateTyped<TModel>).

    Panics

    When the column has neither a template nor a template resource key.

    Source

    Trait implementations

    Availability

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