quilljs-table
quilljs-table copied to clipboard
TableCell create method
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;
}
...