new WKcEnum(arguments) → {Object}
$wk$.WKcEnum is a constructor to create enumeration types.
Each argument passed to the constructor describes a enumeration key/value pair. Three types of arguments are supported:
String- The string denotes the enumaration key. As enumaration value a unique integer number is used.
Array- The array must contain two values: The first value, a string, denotes the key, the second value is used as enumeration value.
Object- The object itself is used a enumartion value. It must contain a
property named
key, the value of which is used as enumeration key.
Parameters:
| Name | Type | Description |
|---|---|---|
arguments |
A list of enumeration key/value specifiers. |
- Source:
Returns:
A new enumeration object.
- Type
- Object