@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
22 lines (21 loc) • 958 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PanelDashboard = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const Dashboard_1 = require("../../../../components/Dashboard");
class PanelDashboard extends React.Component {
render() {
const { headerText, showConfigureActionButton, showCloseActionButton, onConfigure, onClose, accessLevel, children, } = this.props;
return (React.createElement(Dashboard_1.DashboardToolbar, { title: headerText, onConfigure: onConfigure, showConfigure: showConfigureActionButton, showClose: showCloseActionButton, onClose: onClose, accessLevel: accessLevel }, children));
}
}
exports.PanelDashboard = PanelDashboard;
PanelDashboard.defaultProps = {
showConfigureActionButton: true,
showCloseActionButton: true,
headerText: 'Module',
onClose: null,
onConfigure: null,
accessLevel: 'Full',
};