Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
feat(table): Extra attributes and extra classes for the table rows - …
Browse files Browse the repository at this point in the history
…TWIG-203 (#305)
  • Loading branch information
planctus authored and papegaill committed Jan 28, 2020
1 parent e4d32f1 commit 9449791
Show file tree
Hide file tree
Showing 5 changed files with 510 additions and 8 deletions.
6 changes: 6 additions & 0 deletions src/ec/packages/ec-component-table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ npm install --save @ecl-twig/ec-component-table
- "label" (string or array of string)
- "colspan" (string) (default: ''),
- **"rows"** (array) (default: [])
- "extra_attributes": (string) (default: '') Extra attributes for the row (space separated)
- "extra_classes": (string) (default: '') Extra classes for the table row (space separated)
- "label" (string or array of string)
- "data-ecl-table-header" (string) (default: ''),
- "data-ecl-table-header-group" (string) (default: '')
Expand Down Expand Up @@ -44,6 +46,8 @@ npm install --save @ecl-twig/ec-component-table
],
rows: [
[
extra_classes: 'an-extra-class',
extra_attributes: 'an-extra-attribute="with_a_value", another-attribute',
{ label: 'John', 'data-ecl-table-header': 'Name' },
{
label: 'September 14, 2013',
Expand All @@ -67,6 +71,8 @@ npm install --save @ecl-twig/ec-component-table
},
],
[
extra_classes: 'an-extra-class',
extra_attributes: 'an-extra-attribute',
{ label: 'Ron', 'data-ecl-table-header': 'Name' },
{
label: 'October 23, 2014',
Expand Down
Loading

0 comments on commit 9449791

Please sign in to comment.