You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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”

  1. ${enum_info(“Doge”, “words”)}
  2. ${enum_info(“Doge”, “words”, true)}

would yield

  1. [{value: “such”}, {value: “choices”}, {value: “much”}, {value: “awesome”}]
  2. [“such”, “choices”, “much”, “awesome”]

Search results for "enum_info()"

enum_info()

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)

enum_info(typeName, enumName [, rawList = false])