Table

Classes for the Table component.

Overview

The Table component is one of the most complex components in VulcanUI. It features a hierarchical structure that mirrors the actual HTML DOM. This documentation provides a comprehensive guide to all available BEM classes for styling and customizing the Table.

The Table component follows a strict hierarchical structure with the root container ds-table__viewport containing all sub-elements. Each level serves a specific purpose and can be styled independently.

<div class="ds-table__viewport">
  <!-- All table content nested here -->
</div>

Class hierarchy

The hierarchical class structure is as follows. Modifiers are shown in parentheses.

The following images map the Table classes by number. This helps you target the exact part you want in your custom CSS stylesheet.

Table classes

Outer

  1. ds-table__viewport

  2. ds-table__toolbar

  3. ds-table__wrapper

  4. ds-table__controls

Toolbar

The parent class for the toolbar is ds-table__toolbar.

  1. ds-table__toolbar-actions

  2. ds-table__filters

    1. ds-table__search

      1. ds-table__search-icon

      2. ds-table__search-input

Table wrapper

The parent class for the table content is ds-table__wrapper.

  1. ds-table

    1. ds-table__head

    2. ds-table__body

Table head

The parent class for the table content is ds-table__head.

  1. ds-table__row

    1. ds-table__cell

      1. ds-table__text

      2. ds-table__cell-checkbox

Table body

The parent class for the table content is ds-table__body.

  1. ds-table__row

    1. ds-table__cell

      1. ds-table__text

      2. ds-table__cell-checkbox

      3. ds-table__cell-actions

        1. ds-table__cell-actions-button (This is the actual HTML <button> element in the actions menu.)

Controls

The parent class for the table content is ds-table__controls.

  1. ds-table__pagination

  2. ds-table__pagination-button

Rendered DOM

This is the Table raw HTML DOM as loaded in the application, with all classes seen in this section:

chevron-rightTable component HTML DOMhashtag

Last updated

Was this helpful?