Class $k.Choice
A choice of a choice attribute. The possible choices are defined by ChoiceRange.
- Defined in: Choice.js
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Class Detail
$k.Choice()
Method Detail
-
{boolean} equals(value)Returns true if the values are equal
- Parameters:
- value
- Returns:
- {boolean}
-
{string} internalName()Returns the internal name (key) of the choice
- Returns:
- {string} The internal name
-
{number} position()Returns the position (0-based) of the choice, if defined
- Returns:
- {number}
-
{string} untranslatedString()Returns the untranslated string
- Returns:
- {string}
-
{string} valueString(language)Returns the string representation of the choice. Returns the fallback string if the choice does not define a translation for a language
- Parameters:
- {string} language Optional
- Language of the value. If not defined, the current language will be used
- Returns:
- {string}