Money Geek UI Components
BadgeBest RankingBoxBreakLineButtonColumn Range ChartColumnsCompany Cross LinkingCompany LogoContent ValidatorExpand/CollapseIconList RankingOrderedListPlaygroundPremiumRankingPros/ConsQuoteQuote ButtonQuotesWidgetReadmeStar RankingState Cross LinkingStaticPremiumTableStaticTableBasic UsageLeft row headersMax itemsAditional types

StaticTable

topHeaderColor
string
"#616877"
rows
object
leftHeaderColor
string
"#E6E6E6"
topHeaders
array
['Column 1', 'Column 2', 'Column 3']
className
string
children
array
margin
object

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.

Aditional types

Product atributes

Headless List