private setupEvents()

in components/js/slickGrid.ts [487:512]


    private setupEvents(): void {
        this._grid.onScroll.subscribe((e, args) => {
            this.onScroll.emit(args);
        });
        this._grid.onCellChange.subscribe((e, args) => {
            this.onCellChange.emit(args);
        });
        this._grid.onBeforeEditCell.subscribe((e, args) => {
            this.onBeforeEditCell.emit(args);
        });
        // Subscribe to all active cell changes to be able to catch when we tab to the header on the next row
        this._grid.onActiveCellChanged.subscribe((e, args) => {
            // Emit that we've changed active cells
            this.onActiveCellChanged.emit(args);
        });
        this._grid.onContextMenu.subscribe((e, args) => {
            this.onContextMenu.emit(e);
        });
        this._grid.onBeforeAppendCell.subscribe((e, args) => {
            // Since we need to return a string here, we are using calling a function instead of event emitter like other events handlers
            return this.onBeforeAppendCell ? this.onBeforeAppendCell(args.row, args.cell) : undefined;
        });
        this._grid.onRendered.subscribe((e, args) => {
            this.onRendered.emit(args);
        });
    }