veams-component-table

5.1.0 • Public • Published

npm version Gitter Chat

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 vc table


Fields

table.hbs

Settings

  • settings.tableContextClass {String} [default] - Context class of component.
  • settings.tableClasses {String} - Modifier classes for component.

Content

  • content.tableCaption {String} - A caption for the table.
  • content.tableHeader {Object} - An object which contains the headings.
  • content.tableHeader.tableRows {Array} - Rows in header.
  • content.tableBody {Object} - An object which contains the body.
  • content.tableBody.tableRows {Array} - Rows in body.

table__row.hbs

Settings

  • settings.trClass {String} - Row classes.

Content

  • content.tableCells {Array} - Table cells.

table__cell.hbs

Settings

  • settings.thTag {Boolean} - Definition of th or td.
  • settings.cellClass {String} - Cell classes.

Content

  • content.cellContent {String} - Cell content.

Readme

Keywords

Package Sidebar

Install

npm i veams-component-table

Weekly Downloads

3

Version

5.1.0

License

MIT

Last publish

Collaborators

  • andy-gutsche
  • sebastian-fitzner