Styles and IDs

TIFANY allows you to apply custom classes, IDs, and visual styles to any element within your table (Cell, Row, or Column). Additionally, several built-in utility classes provide advanced interactivity such as collapsible rows and tabbed column switching.


1. Built-in Utility Classes

TIFANY includes pre-configured classes that trigger specific behaviors when applied to table elements.

Collapsible Rows (accordion-header)

The accordion-header class transforms a row into a clickable toggle that expands or collapses the rows beneath it.

Column Tab Switching (sp-$index)

The sp- system allows you to create tabs that switch the visibility of specific columns or cells.

1. Apply a class in the format sp-1, sp-2, etc., to cells or columns. 2. Use the Tabs input in the top toolbar to generate a tab bar with matching indices.

Visual Emphasis (highlighted)

A built-in class for highlighting specific cells with a distinct background color.

Text Orientation (sideways-face)

Rotates the text within a cell by 90 degrees or flips it vertically.

Sticky Headers (freeze-pane)

Keeps the selected row or column visible while scrolling through large tables.


2. Applying Styles and IDs

Use the Styles & ID section in the left panel to modify selected elements.

Element Selection

Choose whether to apply changes to:

Custom Classes and IDs

Visual Properties (Inline Styles)

PropertyControl
ColorsModify Background, Text, or Border colors via the color picker.
SpacingSet precise Padding or Margin values (Top, Right, Bottom, Left).
Border CollapseToggle between collapse and separate for the table grid.

3. Table Attributes

Manage structural HTML attributes directly:

Use the Apply to Selected button after configuring your styles to execute the changes. Use Undo if the result is not as expected.