enum_info()
Usage
enum_info(type, enum[, rawList = false])
Description
Returns a list of the possible values of an enum property.
If the rawList flag is set to “true”, a simple list will be returned. If it is omitted or set to false, a list of objects will be returned (so it can be used in a repeater element)
Examples
An enum property words
is defined on the type Doge
with format = “such, choices, much, awesome”
- ${enum_info(“Doge”, “words”)}
- ${enum_info(“Doge”, “words”, true)}
would yield
- [{value: “such”}, {value: “choices”}, {value: “much”}, {value: “awesome”}]
- [“such”, “choices”, “much”, “awesome”]