quilljs-table icon indicating copy to clipboard operation
quilljs-table copied to clipboard

TableCell create method

Open unstoo opened this issue 6 years ago • 0 comments

Hello, Can you please explain how do you pass tableId and rowId arguments into the TableCell.create(value) method?

class TableCell extends Container {
      static create(value) {
        const node = super.create();
        const { tableId, rowId, cellId } = value;
        if (tableId) {
          node.setAttribute('data-table-id', tableId);
        }
        if (rowId) {
          node.setAttribute('data-row-id', rowId);
        }
        if (cellId) {
          node.setAttribute('data-cell-id', cellId);
        }
        return node;
      }
...

unstoo avatar Jun 12 '18 17:06 unstoo