forked from CITKParus/P8-Panels
WEBAPP: P8PDataGrid - возможность управления стилем корневого контейнера
This commit is contained in:
parent
1cd0177454
commit
6ebbd0f08f
@ -36,6 +36,7 @@ const P8P_DATA_GRID_FILTERS_HEIGHT = P8P_TABLE_FILTERS_HEIGHT;
|
|||||||
|
|
||||||
//Таблица данных
|
//Таблица данных
|
||||||
const P8PDataGrid = ({
|
const P8PDataGrid = ({
|
||||||
|
style = {},
|
||||||
columnsDef = [],
|
columnsDef = [],
|
||||||
filtersInitial,
|
filtersInitial,
|
||||||
groups = [],
|
groups = [],
|
||||||
@ -114,6 +115,7 @@ const P8PDataGrid = ({
|
|||||||
//Генерация содержимого
|
//Генерация содержимого
|
||||||
return (
|
return (
|
||||||
<P8PTable
|
<P8PTable
|
||||||
|
style={style}
|
||||||
columnsDef={columnsDef}
|
columnsDef={columnsDef}
|
||||||
groups={groups}
|
groups={groups}
|
||||||
rows={rows}
|
rows={rows}
|
||||||
@ -154,6 +156,7 @@ const P8PDataGrid = ({
|
|||||||
|
|
||||||
//Контроль свойств - Таблица данных
|
//Контроль свойств - Таблица данных
|
||||||
P8PDataGrid.propTypes = {
|
P8PDataGrid.propTypes = {
|
||||||
|
style: PropTypes.object,
|
||||||
columnsDef: PropTypes.array,
|
columnsDef: PropTypes.array,
|
||||||
filtersInitial: PropTypes.arrayOf(P8P_DATA_GRID_FILTER_SHAPE),
|
filtersInitial: PropTypes.arrayOf(P8P_DATA_GRID_FILTER_SHAPE),
|
||||||
groups: PropTypes.array,
|
groups: PropTypes.array,
|
||||||
|
@ -486,6 +486,7 @@ P8PTableFiltersChips.propTypes = {
|
|||||||
|
|
||||||
//Таблица
|
//Таблица
|
||||||
const P8PTable = ({
|
const P8PTable = ({
|
||||||
|
style = {},
|
||||||
columnsDef = [],
|
columnsDef = [],
|
||||||
groups = [],
|
groups = [],
|
||||||
rows = [],
|
rows = [],
|
||||||
@ -700,7 +701,7 @@ const P8PTable = ({
|
|||||||
|
|
||||||
//Генерация содержимого
|
//Генерация содержимого
|
||||||
return (
|
return (
|
||||||
<div>
|
<div style={{ ...(style || {}) }}>
|
||||||
{displayHintColumn ? (
|
{displayHintColumn ? (
|
||||||
<P8PTableColumnHintDialog columnDef={displayHintColumnDef} okBtnCaption={okFilterBtnCaption} onOk={handleHintOk} />
|
<P8PTableColumnHintDialog columnDef={displayHintColumnDef} okBtnCaption={okFilterBtnCaption} onOk={handleHintOk} />
|
||||||
) : null}
|
) : null}
|
||||||
@ -898,6 +899,7 @@ const P8PTable = ({
|
|||||||
|
|
||||||
//Контроль свойств - Таблица
|
//Контроль свойств - Таблица
|
||||||
P8PTable.propTypes = {
|
P8PTable.propTypes = {
|
||||||
|
style: PropTypes.object,
|
||||||
columnsDef: PropTypes.arrayOf(
|
columnsDef: PropTypes.arrayOf(
|
||||||
PropTypes.shape({
|
PropTypes.shape({
|
||||||
name: PropTypes.string.isRequired,
|
name: PropTypes.string.isRequired,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user