# DruxtFieldMixin

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>
1
2
3
4
5
6
7

# .props

Kind: static property of DruxtFieldMixin


# .errors : array

JSON:API errors.

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.