@tourmalinecore/react-table-responsive
Version:
React Table Responsive
2 lines (1 loc) • 475 B
JavaScript
import{ACTIONS_COLUMN_ID as t}from"../../utils/getActionsDropdownColumn.js";function e(e){return e.id===t?"tc-table-desktop__action-cell":""}var n=new Map([["left","flex-start"],["center","center"],["right","flex-end"]]),r=function(t){var e=t.width,r=t.align,o=void 0===r?"left":r;return{style:{justifyContent:n.get(o),width:e}}};function o(t){var e=t.tableId;return document.querySelector("#".concat(e))}export{r as getStyles,o as getTableById,e as setActionCellClassName};