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.
Members
newwith_resource_keyscell_templateset_cell_templatecell_editing_templateset_cell_editing_templatecell_template_resource_keyset_cell_template_resource_keycell_editing_template_resource_keyset_cell_editing_template_resource_keytext_search_bindingset_text_search_bindingcreate_typed
new
fn new() -> Rc<Self>
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)).
cell_template
fn cell_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
set_cell_template
fn set_cell_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
cell_editing_template
fn cell_editing_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
set_cell_editing_template
fn set_cell_editing_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
cell_template_resource_key
fn cell_template_resource_key(self: &Self) -> Option<ResourceKey>
set_cell_template_resource_key
fn set_cell_template_resource_key(self: &Self, value: Option<ResourceKey>)
cell_editing_template_resource_key
fn cell_editing_template_resource_key(self: &Self) -> Option<ResourceKey>
set_cell_editing_template_resource_key
fn set_cell_editing_template_resource_key(self: &Self, value: Option<ResourceKey>)
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).
set_text_search_binding
fn set_text_search_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelMarkupTypedPartialEqDerefDefaultTreeDataGridColumn
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.