--- title: Table Components layout: nested-component.html ---

Table Components

Numbers and dates

Numbers and dates can be hard to quickly digest using normal fonts. Use these helper classes to apply a monospaced font instead.

Numbers Dates
398.382,20 15-01-2014
398.382,20 15-01-2014
398.382,20 15-01-2014
398.382,20 15-01-2014

Table Subheaders

Use subheaders in <thead> to connect multiple columns under one name. Just don't forget to add the appropriate colspan attributes.

Group of columns Group of columns
Lorem Lorem Lorem Lorem Lorem Lorem Lorem

Table Actions

We use buttons and links alot in our tables. Adding this class will help making the cell look good regardless of the amount of buttons you might decide to put in there.

Table rules still apply. All other cells in the row expands along with the cell with actions.

First Name Last Name Username Email Role Birthday Status Actions
John Doe jd john.doe@company.com Administrator 21/05/1980 Active

Table Dropdowns

Adding 500 buttons to a table-cell is horrible, so we also offer a dropdown specifically designed to be used with tables. The dropdown is not the default bootstrap dropdown, but instead a more advanced build by Hubspot.

Dropdowns build with Drop from Hubspot can be configured by adding a data-options attribute with a object of options to the triggering button, ie.: data-options="{position: 'bottom right'}".

Read all about Drop here: http://github.hubspot.com/drop/

First Name Last Name Username Email Role Birthday Status Actions
John Doe jd john.doe@company.com Administrator 21/05/1980 Active

Table Sorters

We add sorting buttons automatically on our javascript backed data-tables. But if you want to sort using Laravel or something else, you can add an element to a <td> in your table header. Use .sorting when the current column is not being sorted, .sorting_asc for ascending and .sorting_desc for descending.

Sortable Sortable Sortable
Not here though Not here though Not here though