DruxtFieldEntityReferenceEntityView
DruxtFieldEntityReferenceEntityView
Deprecated in druxt-entity:0.16.0, removed from druxt-entity:2.0.0. Use a field wrapper component resolved by the component suggestion system instead.
Renders an entity reference field's referenced entities as DruxtEntity components.
See: /modules/entity/deprecations
.computed
Kind: static property of DruxtFieldEntityReferenceEntityView
.mode : string
Display mode for referenced entity.
Kind: static property of computed
Default: "default"
.props : object
Properties to bind to DruxtEntity component.
Kind: static property of computed
.items() : boolean | object
The Field items, normalised to an array for rendering.
Relationship values are mapped to { type, uuid, mode } objects for use
with the DruxtEntity component.
Kind: static method of computed
Default: []
.props
Kind: static property of DruxtFieldEntityReferenceEntityView
.errors : array
JSON:API errors.
Kind: static property of props
Default: []
.langcode : string
The JSON:API resource language code.
Kind: static property of props
.inner : object
Inner wrapper component and props.
Kind: static property of props
Default: { component: 'div', props: {} }
.relationship : boolean
Field relationship status.
Kind: static property of props
.schema : object
Field schema object.
Kind: static property of props
.value : array | boolean | number | object | string
The Field value.
Kind: static property of props
.wrapper : object
Outer wrapper component and props.
Kind: static property of props
Default: { component: 'div', props: {} }
.data(vm)
Provides the reactive field model, initialized from the value property.
Kind: static method of DruxtFieldEntityReferenceEntityView
| Param | Type | Description |
|---|---|---|
| vm | object | The component ViewModel. |
| vm.value | Array | boolean | number | object | string | The Field value. |
Properties
| Name | Type | Description |
|---|---|---|
| model | object | The model object. |