# new PropertyDecorator(opts)
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object
|
|
property |
BaseProperty
|
|
admin |
AdminJS
|
current instance of AdminJS |
options |
PropertyOptions
|
|
resource |
ResourceDecorator
|
Classes
Members
# isVirtual
database adapter
boolean
# isVirtual
database adapter
# propertyPath
For root property (this without a parent) it will be its name.
But when property has children their paths will include parent path:
parentName.subPropertyName
.
This path serves as a key in PropertyOptions to identify which property has to be updated
string
# propertyPath
For root property (this without a parent) it will be its name.
But when property has children their paths will include parent path:
parentName.subPropertyName
.
This path serves as a key in PropertyOptions to identify which property has to be updated
# private virtualSubProperties
in the database
Array.<PropertyDecorator>
# private virtualSubProperties
in the database
Methods
# availableValues() → {Array.<{value: string, label: string}>}
it returns them.
Array.<{value: string, label: string}>
# isTitle() → {boolean}
Title field is used as a link to the resource page in the list view and in the breadcrumbs
boolean
# isVisible(where) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
where |
'list'
|
'edit'
|
'show'
|
'filter'
|
boolean
# reference() → {BaseResource}
reference resource
# resource() → {ResourceDecorator}
# subProperties() → {Array.<PropertyDecorator>}
decorated subProperties
Array.<PropertyDecorator>
# toJSON(whereopt) → {PropertyJSON}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
where |
PropertyPlace
|
<optional> |