/

On this page

Enumeration entry

An enumeration entry is an input value that matches the name of an element from an enumeration. Enumerations cannot be created from the Quarkdown language, so the term enumeration refers to a native JVM enum.

This value type is common among function parameters in the standard library. From the user’s perspective, these values are just strings. The difference occurs at invocation time, where Quarkdown throws an error if the value does not match any of the available entries.

Name matching follows these rules:

Examples

Page format:

.pageformat {A4} <!-- A4 is an entry of PageSizeFormat -->

Stacks:

.row alignment:{center} <!-- center is an entry of MainAxisAlignment -->
  ...

Box:

.box type:{warning} <!-- warning is an entry of Box.Type -->
  ...