1.0.1 • Published 6 years ago

@veams/component-table v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Table

Description

The <table> element represents data with more than one dimension, in the form of a table.

The specs says:

Tables have rows, columns, and cells given by their descendants. The rows and columns form a grid; a table's cells must completely cover that grid without overlap.

Tables must not be used as layout aids


Installation

Installation with Veams

veams install component table
veams -i c table

Fields

table.hbs

Settings

ParameterTypeValueDescription
settings.tableContextClassStringdefaultContext class of component.
settings.tableClassesStringModifier classes for component.

Content

ParameterTypeDescription
content.tableCaptionStringA caption for the table.
content.tableHeaderObjectAn object which contains the headings.
content.tableHeader.tableRowsArrayRows in header.
content.tableBodyObjectAn object which contains the body.
content.tableBody.tableRowsArrayRows in body.

table__row.hbs

Settings

ParameterTypeDescription
settings.trClassStringRow classes.

Content

ParameterTypeDescription
content.tableCellsArrayTable cells.

table__cell.hbs

Settings

ParameterTypeDescription
settings.thTagBooleanDefinition of th or td.
settings.cellClassStringCell classes.

Content

ParameterTypeDescription
content.cellContentStringCell content.
1.0.1

6 years ago

1.0.0

6 years ago