diff --git a/app/components/p8p_data_grid.js b/app/components/p8p_data_grid.js index 98525be..7ccfd73 100644 --- a/app/components/p8p_data_grid.js +++ b/app/components/p8p_data_grid.js @@ -54,6 +54,8 @@ const P8PDataGrid = ({ groupCellRender, rowExpandRender, valueFormatter, + containerComponent, + containerComponentProps, onOrderChanged, onFilterChanged, onPagesCountChanged, @@ -129,6 +131,8 @@ const P8PDataGrid = ({ rowExpandRender={rowExpandRender} valueFormatter={valueFormatter} objectsCopier={objectsCopier} + containerComponent={containerComponent} + containerComponentProps={containerComponentProps} onOrderChanged={handleOrderChanged} onFilterChanged={handleFilterChanged} onPagesCountChanged={handlePagesCountChanged} @@ -162,6 +166,8 @@ P8PDataGrid.propTypes = { groupCellRender: PropTypes.func, rowExpandRender: PropTypes.func, valueFormatter: PropTypes.func, + containerComponent: PropTypes.oneOfType([PropTypes.elementType, PropTypes.string]), + containerComponentProps: PropTypes.object, onOrderChanged: PropTypes.func, onFilterChanged: PropTypes.func, onPagesCountChanged: PropTypes.func, diff --git a/app/components/p8p_table.js b/app/components/p8p_table.js index 27d970c..b81947d 100644 --- a/app/components/p8p_table.js +++ b/app/components/p8p_table.js @@ -482,7 +482,9 @@ const P8PTable = ({ onOrderChanged, onFilterChanged, onPagesCountChanged, - objectsCopier + objectsCopier, + containerComponent, + containerComponentProps }) => { //Собственное состояние - описание заголовка const [header, dispatchHeaderAction] = useReducer(p8pTableReducer, HEADER_INITIAL_STATE()); @@ -682,7 +684,8 @@ const P8PTable = ({ valueFormatter={valueFormatter} /> ) : null} - + + {header.displayLevels.map(level => ( @@ -868,7 +871,9 @@ P8PTable.propTypes = { onOrderChanged: PropTypes.func, onFilterChanged: PropTypes.func, onPagesCountChanged: PropTypes.func, - objectsCopier: PropTypes.func.isRequired + objectsCopier: PropTypes.func.isRequired, + containerComponent: PropTypes.oneOfType([PropTypes.elementType, PropTypes.string]), + containerComponentProps: PropTypes.object }; //----------------