opt-table
Version:
A Responsive and Customizable Rich Table
16 lines • 1.11 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OptTable = void 0;
const react_1 = __importDefault(require("react"));
const table_context_1 = require("../../context/table_context");
const table_index_1 = __importDefault(require("./table_index"));
function LocalTable(props, ref) {
const localRef = ref || react_1.default.useRef(null);
return (react_1.default.createElement(table_context_1.TableContextProvider, { ref: ref, table_props: props },
react_1.default.createElement(table_index_1.default, { data: props.data, table_head_list: props.table_head_list, DetailsPanel: props.DetailsPanel, loading: props.loading, default_sort: props.default_sort, container_style: props.container_style, has_pagination: props.has_pagination, options: props.options, ref: localRef, table_zIndex: props.table_zIndex })));
}
exports.OptTable = react_1.default.forwardRef(LocalTable);
//# sourceMappingURL=table_screen.js.map