UNPKG

slate-edit-table

Version:

A Slate plugin to handle keyboard events in tables.

20 lines (16 loc) 378 B
// @flow import { type Block } from 'slate'; import { type List } from 'immutable'; import type Options from '../options'; /** * Returns the list of cells at the given row index */ function getCellsAtRow( opts: Options, // The table table: Block, rowIndex: number ): List<Block> { return table.nodes.get(rowIndex).nodes; } export default getCellsAtRow;