@dccs/react-table-semantic-ui
Version:
A Semantic-UI implementation of react-table-plain
23 lines (22 loc) • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var semantic_ui_react_1 = require("semantic-ui-react");
exports.tableSemanticUITheme = {
rootElement: semantic_ui_react_1.Table,
rowElement: semantic_ui_react_1.Table.Row,
cellElement: semantic_ui_react_1.Table.Cell,
headerCellElement: semantic_ui_react_1.Table.HeaderCell,
headerElement: semantic_ui_react_1.Table.Header,
bodyElement: semantic_ui_react_1.Table.Body,
footerElement: semantic_ui_react_1.Table.Footer,
renderSortLabel: function (colDef, desc) { return (React.createElement("span", { style: {
fontFamily: "Icons",
height: "1em"
} }, desc ? "" : "")); },
renderExpansionIndicator: function (expanded) { return (React.createElement(semantic_ui_react_1.Button, { icon: true, style: {
transition: "transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
transform: "rotate(" + (expanded ? 0 : -90) + "deg)"
} },
React.createElement(semantic_ui_react_1.Icon, { name: "chevron right" }))); }
};