StaticTable
Basic Usage
This is the simplest way to use the StaticTable
. You must define the topHeaders
as shown. Each item will be the title for each column. You can use the table tags just as you would do it on plain HTML.
Left row headers
You can define left row headers using the class row-header
on the first element of each row. You should also use the <th></th>
tag instead of <td>
but it's not mandatory in order to make it work.
Max items
It happens that sometimes you need to show a long table with a lot of rows. You can set the amount of rows you want to show from that list using the attribute displayCount
as you can see below. If the number assigned to displayCount
is bigger than the rows in your table, this attribute wont have any effect.
When using the displayCount
attribute, a button will appear at the bottom of the table with a "Show more" text. It will toggle between the total of rows and the defined by you in displayCount
.