Skip to content

Class Argument

Identifier class
Allows Multiple true

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 is allowed in 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))]