anmcgrath / BlazorDatasheet

Simple excel-like datasheet Blazor component
MIT License
133 stars 32 forks source link

Re-work editing. #25

Closed anmcgrath closed 1 year ago

anmcgrath commented 1 year ago

Editing has been managed by the Datasheet class. This was getting messy and so it's cleaner to break this functionality into the EditorManager class.

The BaseEditorComponent has been removed in favour of a ICellEditor interface, which any new editors must implement.

It is intended that the editor would store the current edited value in the EditorManager through the GetEditedValue and SetEditedValue functions. This is required because unfortunately when virtualisation is used we lose the state of the editor component when it moves out of view.