auro-table

Properties

PropertyAttributeTypeDefault
columnHeaderscolumnHeadersarray
componentDatacomponentDataarray
nowrapnowrapbooleanfalse

API Examples

Basic

My morning schedule
See code
<auro-table
  columnHeaders='["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]'
  componentData='[
  {"": "Dance class", "Monday": "5:00pm","Wednesday": "5:00pm" },
  {"": "Night classes", "Thursday": "7:00pm","Friday": "7:00pm" },
  {"": "Team meeting", "Wednesday": "10:00am" },
  {"": "Morning workout", "Monday": "8:00am", "Tuesday": "8:00am", "Wednesday": "8:00am", "Thursday": "8:00am", "Friday": "8:00am" }
  ]'>My morning schedule
</auro-table>

Attribute Examples

columnHeaders

The columnHeaders attribute is used to provide the column header content for the table.

componentData

The componentData attribute is used to provide the table TD content for the table.

noWrap

The nowrap attribute, when applied, will prevent table content from word wrapping, i.e. all text content will be on a single line.

Theme Support

The component may be restyled using the following code sample and changing the values of the following token(s).

@import "./../node_modules/@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska";

:host {
  --ds-auro-table-alt-row-container-color: var(--ds-advanced-color-shared-background-muted, #{$ds-advanced-color-shared-background-muted});
  --ds-auro-table-border-color: var(--ds-basic-color-border-subtle, #{$ds-basic-color-border-subtle});
}