global
Members
types :Array.<String>
A getter that retrieves the array of direct types
Type:
- Array.<String>
- Source:
- decorators/ModelProperties.js, line 230
Methods
deleteProperty(target, key)
Proxy deleteProperty() handler. This is where the delete property
events are fired from
Parameters:
Name | Type | Description |
---|---|---|
target |
Object | the |
key |
string | the property name |
- Source:
- GQLBase.js, line 630
set(target, key, value)
Proxy set() handler. This is where the change events are fired from
Parameters:
Name | Type | Description |
---|---|---|
target |
Object | the |
key |
string | the property name |
value |
mixed | the new property value |
- Source:
- GQLBase.js, line 609
⬇︎⠀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
.
Returns:
(
mixed
)
typically a String but any valid type supplied
- Source:
- GQLEnum.js, line 118