Tables
Table List
A table styled like a list. The active state can be invoked by adding class
table-activeto the<tr></tr>element.
.table-responsive and .table-responsive-{sm|md|lg|xl} should be placed in a div that wraps the table element. See https://github.com/twbs/bootstrap/issues/24638 for more info.
show-quick-actions-on-hover will need Javascript to add class table-focus on the table row when an item inside is focused to make it keyboard accessible.
| ID | Title | Status | Modified Date | Display Date | Author | Type | ||
|---|---|---|---|---|---|---|---|---|
| Group 1 | ||||||||
|
|
21146 |
.table-list-title (not a link)
Some regular text
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder | |
|
|
21148 | -- | 2 Hours Ago | -- | Stanley Nelson | Folder | ||
|
|
21149 |
Cultivar extra
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder | |
|
|
21150 |
Cultivar extra
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder | |
Table List (Inline Edit Table) Example
| Title | Author | Modified Date | ||
|---|---|---|---|---|
|
|
Marge Peggie Margaret Meg Maggie Miller | 35 Seconds Ago | ||
|
|
Arnold Geen | 15 Minutes Ago | ||
|
|
20 Minutes Ago |
|
||
|
|
Michael Dellen | 5 Minutes Ago |
Table Helpers
table-autofitconstrains table columns to be only as wide as its content, but must be used withtable-cell-expand.table-cell-expandwill fill the remaining space.Use
table-cell-expand-small,table-cell-expand-smaller,table-cell-expand-smallestwithtable-cell-expandto size columns smaller relative to the widest column.We have added
table-cell-minw-50,table-cell-minw-75,table-cell-minw-100,table-cell-minw-150,table-cell-minw-200,table-cell-minw-250,table-cell-minw-300,table-cell-minw-350,table-cell-minw-400to setmin-width50px, 75px, 100px, 150px, 200px, 250px, 300px, 350px, 400px on a specific table column, respectively.The helpers
table-cell-ws-normalandtable-cell-ws-nowrapsetswhite-spaceto normal or nowrap on a specific table column, respectively.
| ID | Title | Modified Date | Display Date | Author | Type | |
|---|---|---|---|---|---|---|
|
|
21146 |
Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.
|
2 Hours Ago | -- | Stanley Nelson | Folder |
table-heading-nowrapkeeps headings on one line.
| ID | Title | Status | Modified Date | Display Date | Author | Type | |
|---|---|---|---|---|---|---|---|
|
|
21146 |
Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder |
table-nowrapkeeps everything on one line.
| ID | Title | Status | Modified Date | Display Date | Author | Type | |
|---|---|---|---|---|---|---|---|
|
|
21146 |
Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder |
table-imgis a helper that sets the max-height to 100px on an image inside a table. Depending on your use case, you may need to use it with theautofit-rowpattern.
| ID | Title | Status | Modified Date | Display Date | Author | Type | |
|---|---|---|---|---|---|---|---|
|
|
21146 |
|
-- | 2 Hours Ago | -- | Stanley Nelson | Folder |
Vertical Alignment
We have added some classes to help vertically align contents inside a table. The classes
table-valign-bottom,table-valign-middle, andtable-valign-topon<table>will vertically align table cell contents on the bottom, middle, and top, respectively.The classes
thead-valign-bottom,thead-valign-middle, andthead-valign-topon<table>will vertically align the contents inside the table head.The classes
tbody-valign-bottom,tbody-valign-middle, andtbody-valign-topon<table>will vertically align the contents inside the table body.
Table
| Name | Roles | Remove |
|---|---|---|
|
.table-title (not a link)
Some regular text
|
.table-link, link, (.table-action-link), and some regular text | |
| Liferay Site Owner | ||
| Liferay Site Owner | ||
| Liferay Site Owner |
| Country | Purchasing Power Parity | Official Exchange Rate | Real Growth Rate | Household Consumption | Government Consumption | Fixed Capital Investment | Inventories Investment | Exports | Imports |
|---|---|---|---|---|---|---|---|---|---|
| $45.3 billion | $20.65 billion | 3.1% | 96.5% | 23.3% | 25.4% | 0% | 18.1% | -63.4% | |
| $2.416 trillion | $2.19 trillion | 2.3% | 62.5% | 21.7% | 18.3% | 0% | 12.4% | -14.9% | |
| $29.39 billion | $18.56 billion | 6.2% | 65.9% | 12.5% | 27.9% | 1% | 49.9% | -56.3% | |
| $1.389 trillion | $1.356 trillion | -1.3% | 59% | 19.9% | 18.4% | 0.4% | 32.8% | -30.4% |
Table Striped
| Country | Purchasing Power Parity | Official Exchange Rate | Real Growth Rate | Household Consumption | Government Consumption | Fixed Capital Investment | Inventories Investment | Exports | Imports |
|---|---|---|---|---|---|---|---|---|---|
| $45.3 billion | $20.65 billion | 3.1% | 96.5% | 23.3% | 25.4% | 0% | 18.1% | -63.4% | |
| $2.416 trillion | $2.19 trillion | 2.3% | 62.5% | 21.7% | 18.3% | 0% | 12.4% | -14.9% | |
| $29.39 billion | $18.56 billion | 6.2% | 65.9% | 12.5% | 27.9% | 1% | 49.9% | -56.3% | |
| $1.389 trillion | $1.356 trillion | -1.3% | 59% | 19.9% | 18.4% | 0.4% | 32.8% | -30.4% |
Table Bordered
| Country | Purchasing Power Parity | Official Exchange Rate | Real Growth Rate | Household Consumption | Government Consumption | Fixed Capital Investment | Inventories Investment | Exports | Imports |
|---|---|---|---|---|---|---|---|---|---|
| $45.3 billion | $20.65 billion | 3.1% | 96.5% | 23.3% | 25.4% | 0% | 18.1% | -63.4% | |
| $28.34 billion | $12.8 billion | 3.1% | 87.6% | 8.4% | 25% | -2.6% | 36% | -54.4% | |
| $2.416 trillion | $2.19 trillion | 2.3% | 62.5% | 21.7% | 18.3% | 0% | 12.4% | -14.9% | |
| $1.389 trillion | $1.356 trillion | -1.3% | 59% | 19.9% | 18.4% | 0.4% | 32.8% | -30.4% |
Table Hover
| Country | Purchasing Power Parity | Official Exchange Rate | Real Growth Rate | Household Consumption | Government Consumption | Fixed Capital Investment | Inventories Investment | Exports | Imports |
|---|---|---|---|---|---|---|---|---|---|
| $45.3 billion | $20.65 billion | 3.1% | 96.5% | 23.3% | 25.4% | 0% | 18.1% | -63.4% | |
| $2.416 trillion | $2.19 trillion | 2.3% | 62.5% | 21.7% | 18.3% | 0% | 12.4% | -14.9% | |
| $29.39 billion | $18.56 billion | 6.2% | 65.9% | 12.5% | 27.9% | 1% | 49.9% | -56.3% | |
| $1.389 trillion | $1.356 trillion | -1.3% | 59% | 19.9% | 18.4% | 0.4% | 32.8% | -30.4% |