型・APIリファレンス
    Preparing search index...

    Interface GridLike

    Spreadsheet の各 composable で使用する Grid API のみを定義し、 SlickGrid の具体的な実装への依存を限定するための最小インターフェース。

    interface GridLike {
        focus: () => void;
        getActiveCell: () => GridCellCoordinate | null;
        getCanvasNode: () => HTMLElement | null;
        getCellFromEvent: (event: Event) => GridCellCoordinate | null;
        getColumns: () => GridColumnLike[];
        getSelectedRows: () => number[];
        getSelectionModel: () => GridSelectionModelLike;
        gotoCell: (row: number, cell: number, forceEdit?: boolean) => void;
        onActiveCellChanged: SlickEventLike;
        onClick: SlickEventLike;
        onDblClick: SlickEventLike;
        removeCellCssStyles: (key: string) => void;
        resetActiveCell: () => void;
        setActiveCell: (
            ...args: [
                row: number,
                cell: number,
                optEditMode?: boolean,
                preClickModeOn?: boolean,
                suppressActiveCellChangedEvent?: boolean,
            ],
        ) => void;
        setCellCssStyles: (
            key: string,
            hash: Record<string, Record<string, string>>,
        ) => void;
        setSelectedRows: (rows: number[]) => void;
        setSelectionModel: (selectionModel: unknown) => void;
        unsetActiveCell: () => void;
    }
    Index
    focus: () => void

    Grid にフォーカスを移動する

    getActiveCell: () => GridCellCoordinate | null

    アクティブセルを取得する

    getCanvasNode: () => HTMLElement | null

    キャンバス要素を取得する

    getCellFromEvent: (event: Event) => GridCellCoordinate | null

    イベント座標からセル情報を取得する

    getColumns: () => GridColumnLike[]

    カラム定義一覧を取得する

    getSelectedRows: () => number[]

    選択行を取得する

    getSelectionModel: () => GridSelectionModelLike

    SelectionModel を取得する

    gotoCell: (row: number, cell: number, forceEdit?: boolean) => void

    指定セルへ移動する

    onActiveCellChanged: SlickEventLike

    アクティブセル変更イベント

    クリックイベント

    onDblClick: SlickEventLike

    ダブルクリックイベント

    removeCellCssStyles: (key: string) => void

    セル CSS スタイルを削除する

    resetActiveCell: () => void

    アクティブセルをリセットする

    setActiveCell: (
        ...args: [
            row: number,
            cell: number,
            optEditMode?: boolean,
            preClickModeOn?: boolean,
            suppressActiveCellChangedEvent?: boolean,
        ],
    ) => void

    アクティブセルを設定する

    setCellCssStyles: (
        key: string,
        hash: Record<string, Record<string, string>>,
    ) => void

    セル CSS スタイルを設定する

    setSelectedRows: (rows: number[]) => void

    選択行を設定する

    setSelectionModel: (selectionModel: unknown) => void

    SelectionModel を設定する

    unsetActiveCell: () => void

    アクティブセルを解除する