UNPKG

@limetech/lime-elements

Version:
17 lines (15 loc) 379 B
/** * Maps a layout to a Tabulator layout * @param layout - the layout to map * @returns the Tabulator layout * @internal */ function _mapLayout(layout) { const layouts = { stretchLastColumn: 'fitDataStretch', stretchColumns: 'fitColumns', lowDensity: 'fitData', }; return layouts[layout] || 'fitDataFill'; } export { _mapLayout as _ };