Table

Classes for the Table component.

Overview

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

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 in parenthesis.

The below images map the classes of the Table by number so, when using them, you know which part to target specifically with 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> tag in the actions)

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:

Table component HTML DOM

Last updated

Was this helpful?