Namespace: TableComponents

TableComponents

Table components are responsible for displaying tabular data.

The only component that is typically used by the developer is "TableContainer".
The table container takes in the data to be displayed as rows, the data keys to display
as columns, a table title, and then additional configuration options to change the display.

All of these values are passed down as properties from
TableContainer -> Table -> Rows -> Row where it is ultimately finally rendered.

Source:

Example

var Br = MortarJS.require('components', 'Table');

// in component.render
var data = []; // An array of objects to be displayed in the table
var dataKeys = {}; // An object, where every key is the name of a field in data

return { <Br.Table data={data} dataKeys={dataKeys} title="My table" /> }

Classes

Row
Rows
SortButton
SumRow
Table
TableContainer