Categories

System Admin
DXM
Documents
Data

Links

Table App – Styles

Table of Contents

After creating your table app, it will need styles applied to make it more readable and to match with marketing requirements.

Click the Styles tab.

Apps are not automatically styled when they are created as there are a number of options for how styles can be applied.

If you have created a styling Theme for your Kurtosys App client, this is applied during the embed process by referencing the name of the theme key in the div section of the body.

Style Keys

Depending on the styles required for your document or website, you will most likely have a small number of different table styles to create.

It is best practice to therefore create Style Keys so the styles can be set up once, and then used for as many tables as needed.

There are a multitude of ways to style a table, the examples below include the most common requests.

Table Title and Subtitle

  1. With the Styles tab selected, click + at the top of the left pane to create a new style key.
  2. Name – give the style key a name.
  3. Style to Clone – select default from the dropdown list. (If the style key is going to be based on an existing style key, select the appropriate item from the dropdown list.
  4. Click Save.
  1. Click Theme.
  2. Click Add Element+.
  1. Select Base.
  2. Click Save.
  3. Click Base.
  1. Click Add Element+.
  2. Scroll down or search to select Card.
  3. Click Save.
  1. Click Card.
  2. Click Add Element+.
  1. Select Children.
  2. Click Save.
  3. Click Children.
  1. Click Add Element+.
  2. Select Title (and Subtitle if you have one).
  3. Click Save.
  1. Click Title.
  2. Click Add Element+.
  1. Scroll down or search to select Font.
  2. Click Save.
  3. Click Font.
  1. Click Add Element+.
  2. Select Family and Size.
  3. Click Save.
  1. Type in a Family, e.g. Arial.
  2. Type in a font Size.

The preview update immediately.

  1. Click Save.

Repeat steps 21 to 31 for Subtitle

  1. Type in a comment, then click Confirm.

Table Layout and Column Width

  1. Browse to Styles | Theme | Base.
  2. Click Add Element+.
  3. Scroll down to select Table.
  4. Click Save.
  1. Click Table.
  2. Click Add Element+.
  1. Select Children.
  2. Click Save.
  3. Click Children.
  1. Click Add Element+.
  2. Scroll down or type in the search bar, select Wrapper.
  3. Click Save.
  1. Click Wrapper.
  2. Click Add Element+.
  1. Scroll down or type in the search bar, select Overrides. Overrides allow you to target an html element using the html name for that element in the Style config.
  2. Click Save.
  3. Click Overrides.
  1. Click Add Row+.
  2. Click 1. No Label.
  1. Selector – type in table – this refers to the name of the html element that the overrides will be applied to which in this case will be the whole table.
  2. Component Style* – click + Create Component Style*.
  3. Click Add Element+.
  1. Scroll down or type in the search bar, then select Table Layout and Width.
  2. Click Save.
  1. Table Layout – select fixed from the dropdown list to set each column to an equal width.
  2. Width – type in 100% for the table to stretch across the whole page.
  3. Click Save.
  4. Type in a comment, then click Confirm.

Your table display will update immediately.

Text Alignment

In the screenshot above, you will note that the header-row text is center-aligned and the table-body text is left-aligned.

  1. In the left navigation pane, browse down to Children.
  2. Click Add Element+.
  3. Select Cell, then click Save.
  1. Click Cell.
  2. Click Add Element+.
  1. Scroll down or use the search bar, then select Text.
  2. Click Save.
  3. Click Text.
  1. Click Add Element+.
  2. Select Align, then click Save.
  1. Use the dropdown arrow to select center for the alignment. Your table display will update immediately.
  2. Click Save.
  3. Type in a comment, then click Confirm.

Fonts

Global Font

If your table is using the same style font style and size for table header rows as well as table body rows, you can set the style for the whole table.

  1. In the left navigation pane, browse to Table.
  2. Click Add Element+.
  3. Scroll down or use the search bar to select Font.
  4. Click Save.
  1. Click Font.
  2. Click Add Element+.
  1. Select Family. (Also select Size if header rows and body rows will be the same font size.
  2. Click Save.
  3. Type in a font Family to use, e.g. Arial. The table will update immediately.
  4. Click Save.
  5. Type in a comment, then click Confirm.

Different Header Row and Body Row Fonts

If your table header rows use different fonts to your table body rows, you will need to set this up differently.

  1. Browse to Children.
  2. Click Add Element+.
  3. Select Head Cell.
  4. Click Save.
  1. Click Head Cell.
  2. Click Add Element+.
  1. Scroll or use the search bar to select Color and Font.
  2. Click Save.
  1. Type in a color name or hex code. The table will update immediately.
  2. Click Font.
  3. Click Add Element+.
  1. Select Family and Size.
  2. Click Save.
  3. Type in the name of a font family, e.g. Arial.
  4. Type in a font size.
  1. Click Cell in the left navigation pane.
  2. Click Add Element+.
  3. Scroll down or use the search bar to select Color.
  1. Scroll down or use the search bar to select Font.
  2. Click Save.
  3. Type in a color name or a hex code.
  4. Click Font.
  1. Click Add Element+.
  2. Select Family and Size.
  3. Click Save.
  1. Type in a font family name, e.g. courier.
  2. Type in a font size.
  3. Click Save.
  4. Type in a comment, then click Confirm.

Alternating Row Shading

A common request is to have alternating row shading, to do this follow these steps. This generally does not include Header rows, only body rows.

  1. Browse to Children, then click Add Element+.
  2. Scroll down or use the search bar to select Row.
  3. Click Save.
  1. Click Row.
  2. Click Add Element+.
  1. Scroll down or use the search bar to select Selectors. Selectors are used for more complicated styling where the same style is not applied to every element of the same type.
  2. Click Save.
  3. Click Selectors.
  1. Click Add Element+.
  2. Select any Component Style. You will need to update this using the JSON config. (Or type the name of the selector into the search field if you know it.)
  3. Click Save.
  1. Click the <> JSON icon.
  2. The CSS code placeholder specified here will need to reference every odd row which translates to “nth child” in CSS, with a parameter to define nth as “odd”.
  1. Change the red text placeholder, e.g. “:-moz-placeholder”:{} to “:nth-child”: {}.
  2. Press Enter with your cursor in the middle of the {} (curly brackets) to create a new line.
  1. Press Shift+Spacebar for a code suggestion list, then select _parameters.
  2. This opens square brackets for an array, type in “odd” (including the quotation marks), this will reference every odd-numbered row in the table.
  1. Type a , (comma) after the closing square bracket, then press Enter.
  2. Press Shift+Spacebar then select background from the code suggestion list.