UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

17 lines (16 loc) 774 B
import * as React from 'react'; import { DashboardToolbar as DashboardToolbarUI } from '../../../../components/Dashboard'; export class PanelDashboard extends React.Component { render() { const { headerText, showConfigureActionButton, showCloseActionButton, onConfigure, onClose, accessLevel, children, } = this.props; return (React.createElement(DashboardToolbarUI, { title: headerText, onConfigure: onConfigure, showConfigure: showConfigureActionButton, showClose: showCloseActionButton, onClose: onClose, accessLevel: accessLevel }, children)); } } PanelDashboard.defaultProps = { showConfigureActionButton: true, showCloseActionButton: true, headerText: 'Module', onClose: null, onConfigure: null, accessLevel: 'Full', };