Skip to content

Class

Identifier class
Allows Multiple true

Description

The class argument lets you add one or multiple CSS classes to a view field.

Values

The view field argument class accepts the following value configurations.

  • class(className: any)
    • className is the name of the css class to add

Allowed Input Fields

The view field argument class can be used on all view fields.

Examples

This view field will display red text, as it has Obsidian’s mod-warning CSS class.

VIEW[{a} * {b}][math(class(mod-warning))]