# @veams/component-table

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

Latest version **1.0.1** (published 2018-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @veams/component-table
pnpm add @veams/component-table
yarn add @veams/component-table
bun add @veams/component-table
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-10 |
| First published | 2018-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sebastian Fitzner |
| Maintainers | andy-gutsche, sebastian-fitzner |
| Keywords | veams |

## Links

- npm: https://www.npmjs.com/package/@veams/component-table
- Repository: https://github.com/Veams/component-table
- Homepage: https://github.com/Veams/component-table#readme
- Issues: https://github.com/Veams/component-table/issues
- npm.io page: https://npm.io/package/@veams/component-table

## Recent versions

- 1.0.1 (latest) — 2018-05-10
- 1.0.0 — 2018-05-09

## README

<p align="right">
    <a href="https://badge.fury.io/js/%40veams%2Fcomponent-table"><img src="https://badge.fury.io/js/%40veams%2Fcomponent-table.svg" alt="npm version" height="18"></a>
    <a href="https://gitter.im/Sebastian-Fitzner/Veams?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/Sebastian-Fitzner/Veams.svg" alt="Gitter Chat" /></a>
</p>

# 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

``` bash
veams install component table
```
``` bash
veams -i c table
```

-----------

## Fields

### `table.hbs`

#### Settings

| Parameter | Type | Value | Description |
|:--- | :---: |:---: | :--- |
| settings.tableContextClass | String | `default` | Context class of component. |
| settings.tableClasses | String | | Modifier classes for component. |

#### Content

| Parameter | Type | Description |
|:--- |:---:|:--- |
| 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

| Parameter | Type | Description |
|:--- |:---:|:--- |
| settings.trClass | String | Row classes. |

#### Content

| Parameter | Type | Description |
|:--- |:---:|:--- |
| content.tableCells | Array | Table cells. |

### `table__cell.hbs`

#### Settings

| Parameter | Type | Description |
|:--- |:---:|:--- |
| settings.thTag | Boolean | Definition of th or td. |
| settings.cellClass | String | Cell classes. |

#### Content

| Parameter | Type | Description |
|:--- |:---:|:--- |
| content.cellContent | String | Cell content. |

---
_Source: https://npm.io/package/@veams/component-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
