Refactor #3924 - For ColumnGroup & Row

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-10 14:39:25 +03:00
parent 05cb0588da
commit a52acf2a32
9 changed files with 159 additions and 6 deletions

View file

@ -1,7 +1,23 @@
const ColumnGroupProps = [
{
name: 'type',
type: 'string',
default: 'null',
description: 'Defines the type of the group.'
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Uses to pass attributes to DOM elements inside the component.'
}
];
module.exports = {
columngroup: {
name: 'ColumnGroup',
description: 'Columns can be grouped at header and footer sections by defining a ColumnGroup with nested rows and columns',
'doc-url': 'datatable'
'doc-url': 'datatable',
props: ColumnGroupProps
}
};

View file

@ -1,7 +1,23 @@
const RowProps = [
{
name: 'type',
type: 'string',
default: 'null',
description: 'Defines the type of the group.'
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Uses to pass attributes to DOM elements inside the component.'
}
];
module.exports = {
row: {
name: 'Row',
description: 'DataTable can be grouped by defining a Row component with nested columns',
'doc-url': 'datatable'
'doc-url': 'datatable',
props: RowProps
}
};