DruxtFieldMixin
View source on GitHubDruxtFieldMixin
Provides Vue.js properties to render a DruxtField Wrapper component.
Kind: global mixin
Example
<script>
import { DruxtFieldMixin } from 'druxt-entity'
export default {
mixins: [DruxtFieldMixin]
}
</script>
.props
Kind: static property of DruxtFieldMixin
.errors : array
JSON:API errors.
Kind: static property of props
.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: {} }
Todo
- Move inner prop to new common Wrapper mixin.
.relationship : boolean
Field relationship status.
Kind: static property of props
.schema : object
Field schema object.
Kind: static property of props
.value
The Field value.
Kind: static property of props
.wrapper : object
Outer wrapper component and props.
Kind: static property of props
Default: { component: 'div', props: {} }
Todo
- Move wrapper prop to new common Wrapper mixin.
.computed
Kind: static property of DruxtFieldMixin
.items() : boolean | object
Kind: static method of computed
Default: false
.data()
Kind: static method of DruxtFieldMixin
Properties
| Name | Type | Description |
|---|---|---|
| model | object | The model object. |