OPEN_GRID API - v1.6.1
    Preparing search index...

    Interface GridEventMap<T>

    grid.on() 이 받는 이벤트 이름과 그 인자 형의 표. 이름을 적으면 인자 형이 정해져 따로 형을 달지 않아도 된다. 표에 없는 이름(직접 emit 하는 사용자 이벤트 등)도 그대로 쓸 수 있다 — 그때 인자 형은 정해지지 않는다.

    The table of event names grid.on() accepts and their argument types. Naming the event fixes the argument type, so no manual annotation is needed. Names not in the table (such as your own events raised with emit) still work; their argument type is simply not fixed.

    grid.on() が受け取るイベント名とその引数の型の表。名前を書けば引数の型が決まるので、別に型を付けなくて済みます。 表にない名前(自分で emit する利用者イベントなど)もそのまま使えます — その場合、引数の型は決まりません。

    grid.on() 接受的事件名及其参数类型的对照表。写出事件名即可确定参数类型,无需另外标注。 表中没有的名称(例如自己 emit 的用户事件)也可以照常使用 — 此时参数类型不固定。

    grid.on('rowCheck', (e) => console.log(e.rowIndex, e.checked));   // e: RowCheckEvent<Row>
    grid.on('formulaRecalc', (e) => console.log(e.cycles, e.ms)); // e: FormulaRecalcEvent
    interface GridEventMap<T = any> {
        allCheck: AllCheckEvent;
        cellClick: CellEvent<T>;
        cellDblClick: CellEvent<T>;
        cellKeyDown: CellKeyEvent<T>;
        cellKeyPress: CellKeyEvent<T>;
        cellKeyUp: CellKeyEvent<T>;
        cellMouseDown: CellEvent<T>;
        cellMouseMove: CellEvent<T>;
        cellMouseOut: CellEvent<T>;
        cellMouseOver: CellEvent<T>;
        cellMouseUp: CellEvent<T>;
        chartCreate: ChartInstance;
        chartDestroy: { id: string };
        chartPointClick: { id: string; point: ChartPoint };
        chartRender: { id: string; model: ChartDataModel };
        dataChange: T[];
        editEnd: EditEvent<T>;
        editStart: EditEvent<T>;
        filterChange: FilterEvent;
        formulaChange: FormulaChangeEvent;
        formulaError: FormulaErrorEvent;
        formulaRecalc: FormulaRecalcEvent;
        gridDropAfter: GridDropEvent<T>;
        gridDropBefore: GridDropEvent<T>;
        gridDropComplete: GridDropEvent<T>;
        gridDropMapping: GridMappingEvent<T>;
        localeChange: LocaleChangeEvent;
        pageChange: PageChangeEvent;
        rangeChange: RangeChangeEvent;
        rangeCopy: RangeCopyEvent;
        rangeFill: RangeFillEvent;
        ready: OpenGridInstance<T>;
        rowCheck: RowCheckEvent<T>;
        rowClick: RowEvent<T>;
        rowCollapse: RowExpandEvent<T>;
        rowDblClick: RowEvent<T>;
        rowDrop: RowDropEvent;
        rowExpand: RowExpandEvent<T>;
        rowMouseDown: RowEvent<T>;
        rowMouseMove: RowEvent<T>;
        rowMouseOut: RowEvent<T>;
        rowMouseOver: RowEvent<T>;
        rowMouseUp: RowEvent<T>;
        scroll: ScrollEvent;
        selectionChange: SelectionEvent<T>;
        sortChange: SortEvent;
        writeCellsSkip: WriteCellsSkipEvent;
    }

    Type Parameters

    • T = any
    Index

    Properties

    allCheck: AllCheckEvent
    cellClick: CellEvent<T>
    cellDblClick: CellEvent<T>
    cellKeyDown: CellKeyEvent<T>
    cellKeyPress: CellKeyEvent<T>
    cellKeyUp: CellKeyEvent<T>
    cellMouseDown: CellEvent<T>
    cellMouseMove: CellEvent<T>
    cellMouseOut: CellEvent<T>
    cellMouseOver: CellEvent<T>
    cellMouseUp: CellEvent<T>
    chartCreate: ChartInstance
    chartDestroy: { id: string }
    chartPointClick: { id: string; point: ChartPoint }
    chartRender: { id: string; model: ChartDataModel }
    dataChange: T[]
    editEnd: EditEvent<T>
    editStart: EditEvent<T>
    filterChange: FilterEvent
    formulaChange: FormulaChangeEvent
    formulaError: FormulaErrorEvent
    formulaRecalc: FormulaRecalcEvent
    gridDropAfter: GridDropEvent<T>
    gridDropBefore: GridDropEvent<T>
    gridDropComplete: GridDropEvent<T>
    gridDropMapping: GridMappingEvent<T>
    localeChange: LocaleChangeEvent
    pageChange: PageChangeEvent
    rangeChange: RangeChangeEvent
    rangeCopy: RangeCopyEvent
    rangeFill: RangeFillEvent
    rowCheck: RowCheckEvent<T>
    rowClick: RowEvent<T>
    rowCollapse: RowExpandEvent<T>
    rowDblClick: RowEvent<T>
    rowDrop: RowDropEvent
    rowExpand: RowExpandEvent<T>
    rowMouseDown: RowEvent<T>
    rowMouseMove: RowEvent<T>
    rowMouseOut: RowEvent<T>
    rowMouseOver: RowEvent<T>
    rowMouseUp: RowEvent<T>
    scroll: ScrollEvent
    selectionChange: SelectionEvent<T>
    sortChange: SortEvent
    writeCellsSkip: WriteCellsSkipEvent