TemplateCell
struct · ferroui-controls-treedatagrid · v0.5.0
struct TemplateCell
TemplateCell.
Members
new
fn new(value: Option<BoxedValue>, get_cell_template: CellTemplateGetter, get_cell_editing_template: Option<CellTemplateGetter>, options: Option<Rc<dyn ITemplateCellOptions>>) -> Rc<Self>
A cell of value shown with the template get_cell_template returns and edited with the
one get_cell_editing_template returns.
get_cell_template
fn get_cell_template(self: &Self) -> &CellTemplateGetter
The template of the cell when it is not editing.
get_cell_editing_template
fn get_cell_editing_template(self: &Self) -> Option<&CellTemplateGetter>
The template of the cell when it is editing, if the cell can be edited.
value
fn value(self: &Self) -> Option<BoxedValue>
The value of the cell.
set_value
fn set_value(self: &Self, value: Option<BoxedValue>)
Points the cell at another value (a reused cell of another row).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherICellIEditableObject
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.