ICellPropertyProvider Interface#
Contributes a section of editable properties to the cell properties panel. Implement this interface to surface per-cell configuration in the UI. Property values are persisted in Metadata.
public interface ICellPropertyProvider : Verso.Abstractions.IExtension
Implements IExtension
Properties#
Order Property#
The display order of this provider's section within the panel. Lower values appear first.
int Order { get; }
Property Value#
Methods#
AppliesTo(CellModel, ICellRenderContext) Method#
Determines whether this provider contributes properties for the given cell.
bool AppliesTo(Verso.Abstractions.CellModel cell, Verso.Abstractions.ICellRenderContext context);
Parameters#
cell CellModel
context ICellRenderContext
Returns#
GetPropertiesSectionAsync(CellModel, ICellRenderContext) Method#
Returns the property section definition for the given cell.
System.Threading.Tasks.Task<Verso.Abstractions.PropertySection> GetPropertiesSectionAsync(Verso.Abstractions.CellModel cell, Verso.Abstractions.ICellRenderContext context);
Parameters#
cell CellModel
context ICellRenderContext
Returns#
System.Threading.Tasks.Task<PropertySection>
OnPropertyChangedAsync(CellModel, string, object, ICellRenderContext) Method#
Called when the user changes a property value in the panel. The provider validates the change and writes it to cell metadata.
System.Threading.Tasks.Task OnPropertyChangedAsync(Verso.Abstractions.CellModel cell, string propertyName, object? value, Verso.Abstractions.ICellRenderContext context);
Parameters#
cell CellModel
propertyName System.String
value System.Object
context ICellRenderContext