Members
types :Array.<String>
A getter that retrieves the array of direct types
- Source:
Type:
-
Array.<String>
Methods
deleteProperty(target, key)
Proxy deleteProperty() handler. This is where the delete property
events are fired from
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
Object
|
the |
key |
string
|
the property name |
set(target, key, value)
Proxy set() handler. This is where the change events are fired from
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
Object
|
the |
key |
string
|
the property name |
value |
mixed
|
the new property value |
⬇︎⠀name() → {mixed}
Retrieves the actual symbol stored name property from the internal
model object for this enum instance. That is a mouthfull, but it
basically means that if your enum is something like:
enum Person { TALL, SHORT }
and you create an instance using any of the following
p = new Person('TALL')
p = new Person(valueFor('TALL'))
p = new Person({value: 'TALL'})
that your response to p.name
will equate to TALL
.
- Source:
Returns:
- Type:
-
mixed
typically a String but any valid type supplied