Script: Class dw.web.FormFieldOptions

Class FormFieldOptions

The class represents the list of options for a field. The class supports an index style access to the options, e.g. myfield.options[2] or myfield.options.red.

Properties

optionsCount : Number Read Only

The number of option values.

Constructor Summary

This class does not have a constructor, so you cannot create it directly.

Method Summary

getOptionsCount() : Number

Returns the number of option values.

Methods inherited from class Object

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Method Detail

getOptionsCount

getOptionsCount() : Number

Returns the number of option values.