See the full list of Available Events which you can use by simply hook a subscribe to them (the subscribe are a custom SlickGrid Event and are NOT an RxJS Observable type but they very similar). You can access them in Slickgrid-Universal by following the documentation below
View
<divclass="grid1"></div>
ViewModel
Hook yourself to the Changed event of the bindable grid object.
exportclassGridExample { sgb;attached() {constdataset=this.initializeGrid();constgridContainerElm=document.querySelector<HTMLDivElement>(`.grid1`);gridContainerElm.addEventListener('oncellclicked',this.handleOnCellClicked.bind(this));gridContainerElm.addEventListener('oncellchanged',this.handleOnCellChanged.bind(this));this.sgb =newSlicker.GridBundle(gridContainerElm,this.columnDefinitions,this.gridOptions, dataset); }handleOnCellClicked(event) {constargs=event?.detail?.args;consteventData=event?.detail?.eventData;// cellClick event only returns row/cell, use DataView to get its contextconstdataContext=this.sgb.dataView.getItem(args.row); }handleOnCellChanged(event) {constargs=event?.detail?.args;consteventData=event?.detail?.eventData;this.updatedObject =args.item;this.sgb.resizerService.resizeGrid(10); }}
View - SalesForce (ES6)
For SalesForce it's nearly the same, the only difference is that we add our events in the View instead of in the ViewModel