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

    Interface GridLike

    SlickGrid 互換の Grid 最小インターフェース

    interface GridLike {
        getActiveCell?: () => null | GridCellCoordinate;
        getCellFromEvent?: (event: Event) => null | GridCellCoordinate;
        getColumns?: () => { id?: string | number }[];
        getSelectedRows?: () => number[];
        getSelectionModel?: () => undefined | null | GridSelectionModelLike;
        onActiveCellChanged?: SlickEventLike;
        onClick?: 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

    Properties

    getActiveCell?: () => null | GridCellCoordinate

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

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

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

    getColumns?: () => { id?: string | number }[]

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

    getSelectedRows?: () => number[]

    選択行を取得する

    getSelectionModel?: () => undefined | null | GridSelectionModelLike

    SelectionModel を取得する

    onActiveCellChanged?: SlickEventLike

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

    onClick?: 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

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