@limetech/lime-elements
Version:
19 lines (16 loc) • 399 B
JavaScript
;
/**
* 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';
}
exports._mapLayout = _mapLayout;