UNPKG

tabulator-tables

Version:

Interactive table generation JavaScript library

27 lines (23 loc) 551 B
import Renderer from '../Renderer.js'; export default class BasicHorizontal extends Renderer{ constructor(table){ super(table); } renderRowCells(row, inFragment) { const rowFrag = document.createDocumentFragment(); row.cells.forEach((cell) => { rowFrag.appendChild(cell.getElement()); }); row.element.appendChild(rowFrag); if(!inFragment){ row.cells.forEach((cell) => { cell.cellRendered(); }); } } reinitializeColumnWidths(columns){ columns.forEach(function(column){ column.reinitializeWidth(); }); } }