Skip to content

Class

Identifier class
Allows Multiple true

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

The view field argument class accepts the following value configurations.

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

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

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

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