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

    Interface CellKeyEvent<T>

    셀에 포커스가 있는 상태에서 키를 눌렀을 때(키 다운·업·프레스) 오는 정보입니다. CellEvent 가 담는 행·컬럼·값에 더해, 눌린 키 이름(key)을 함께 주므로 Enter 이동·Delete 지우기 같은 단축키를 직접 구현할 수 있습니다.

    Delivered when a key is pressed while a cell has focus (keydown/keyup/keypress). On top of the row/column/value that CellEvent carries, it adds the pressed key name so you can build shortcuts like Enter-to-move or Delete-to-clear.

    セルにフォーカスがある状態でキーを押したとき(キーダウン・アップ・プレス)に届く情報です。CellEvent が 収める行・列・値に加えて、押されたキー名(key)も一緒に渡すので、Enterで移動・Deleteで消去といった ショートカットを自分で実装できます。

    관련 옵션: onCellKeyDown, onCellKeyUp, onCellKeyPress

    Related options: onCellKeyDown, onCellKeyUp, onCellKeyPress

    関連オプション: onCellKeyDown, onCellKeyUp, onCellKeyPress

    单元格处于聚焦状态时按下按键(keydown/keyup/keypress)送达的信息。除了 CellEvent 带的行、列、值之外, 它还给出按下的键名(key),因此可以自行实现 Enter 移动、Delete 清除这类快捷键。

    相关选项: onCellKeyDown, onCellKeyUp, onCellKeyPress

    interface CellKeyEvent<T = any> {
        column: ColumnDef<T>;
        columnIndex: number;
        field: string;
        key: string;
        originalEvent: KeyboardEvent;
        row: T;
        rowIndex: number;
        target: HTMLElement;
        type: string;
        value: any;
    }

    Type Parameters

    • T = any

      행 데이터 타입

      Row data type

      行データの型

      行数据的类型

    Index

    Properties

    column: ColumnDef<T>

    그 컬럼의 정의.

    The column's definition.

    その列の定義。

    该列的定义。

    columnIndex: number

    대상 컬럼의 인덱스.

    Index of the target column.

    対象列のインデックス。

    目标列的索引。

    field: string

    대상 컬럼의 field 이름.

    field name of the target column.

    対象列の field 名。

    目标列的 field 名。

    key: string

    눌린 키 이름(KeyboardEvent.key: 'Enter','ArrowDown','a' …).

    The pressed key name (KeyboardEvent.key).

    押されたキー名(KeyboardEvent.key: 'Enter'、'ArrowDown'、'a' など)。

    按下的键名(KeyboardEvent.key: 'Enter'、'ArrowDown'、'a' 等)。

    originalEvent: KeyboardEvent

    브라우저 원본 키보드 이벤트(수식어 키 등).

    The underlying browser keyboard event (modifier keys …).

    ブラウザ本来のキーボードイベント(修飾キーなど)。

    浏览器原始的键盘事件(修饰键等)。

    row: T

    그 행의 데이터 객체 전체.

    The full row-data object.

    その行のデータオブジェクト全体。

    该行完整的数据对象。

    rowIndex: number

    대상 행의 화면 표시 순서 인덱스.

    Screen-order index of the target row.

    対象行の画面表示順のインデックス。

    目标行按屏幕显示顺序的索引。

    target: HTMLElement

    이벤트가 일어난 셀 DOM 요소.

    The cell DOM element where the event occurred.

    イベントが起きたセルのDOM要素。

    事件发生所在的单元格 DOM 元素。

    type: string

    이벤트 이름('cellKeyDown' 등).

    The event name.

    イベント名('cellKeyDown' など)。

    事件名(如 'cellKeyDown')。

    value: any

    그 셀의 원시 값.

    Raw value of that cell.

    そのセルの生の値。

    该单元格的原始值。