EditingService
Defined in: datagrid/core/services/editing-service.svelte.ts:10
Service for managing cell editing in the datagrid.
Extends
Constructors
new EditingService()
new EditingService(
datagrid,events):EditingService
Defined in: datagrid/core/services/base-service.ts:14
Creates an instance of the BaseService class.
Parameters
datagrid
DatagridCore<any>
The core datagrid instance.
events
The event service used for emitting events.
Returns
Inherited from
Methods
updateCellValue()
updateCellValue(
row,column,value,rowIdentifier?):void
Defined in: datagrid/core/services/editing-service.svelte.ts:21
Updates the value of a specific cell in the grid and triggers necessary actions, such as refreshing the grid or invalidating caches.
Parameters
row
GridBasicRow<any>
The row containing the cell to update.
column
LeafColumn<AccessorColumn<any, any>>
The column containing the cell to update.
value
any
The new value to set for the cell.
rowIdentifier?
any = 'id'
The identifier for the row, defaulting to ‘id’.
Returns
void
Fires
onCellEdit Emitted after a cell value is updated, providing the new and previous row data and the previous and new cell values.