A collection of all the controls on the form that interface with this attribute.
Adds a handler to be called when the attribute's value is changed.
The function reference.
Gets attribute type.
The attribute's type name.
Values returned are:
Gets the attribute format.
The format of the attribute. Values returned are: language, timezone
Gets the option matching a value.
The enumeration value of the option desired.
The option.
Gets the option matching a label.
The label of the option desired.
The option.
Gets all of the options.
An array of options.
Gets the current level of requirement for the attribute.
The required level, as either "none", "required", or "recommended"
Gets selected option.
The selected option.
Gets current submit mode for the attribute.
The submit mode, as either "always", "never", or "dirty"
The default value is "dirty"
Removes the handler from the "on change" event.
The handler.
Sets the required level.
The requirement level, as either "none", "required", or "recommended"
Sets the submit mode.
The submit mode, as either "always", "never", or "dirty".
Sets the value.
The value.
The getOptions() method returns option values as strings. You must use parseInt to convert them to numbers before you can use those values to set the value of an OptionSet attribute. Attributes on Quick Create Forms will not save values set with this method.
Generated using TypeDoc
Interface an OptionSet attribute.
See
EnumAttribute