FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TemplateCell

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TemplateCell
    

    TemplateCell.

    View source

    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.

    Source

    get_cell_template

    fn get_cell_template(self: &Self) -> &CellTemplateGetter
    

    The template of the cell when it is not editing.

    Source

    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.

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    The value of the cell.

    Source

    set_value

    fn set_value(self: &Self, value: Option<BoxedValue>)
    

    Points the cell at another value (a reused cell of another row).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • ICell
    • IEditableObject

    Availability

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