-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor #3924 - For ColumnGroup & Row
- Loading branch information
1 parent
05cb058
commit a52acf2
Showing
9 changed files
with
159 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters