# DruxtEntityMixin

Provides Vue.js properties to render a DruxtEntity or DruxtEntityForm Wrapper component.

Kind: global mixin
Example

<script>
import { DruxtEntityMixin } from 'druxt-entity'

export default {
  mixins: [DruxtEntityMixin],
}
</script>
1
2
3
4
5
6
7

# .props

Kind: static property of DruxtEntityMixin


# .entity : object

The Drupal Entity JSON:API resource data.

Kind: static property of props


# .fields : object

Drupal Entity Fields data.

Kind: static property of props


# .schema : object

DruxtJS Schema object.

Kind: static property of props


# .value

The Entity value.

Kind: static property of props


# .computed

Kind: static property of DruxtEntityMixin


# .classes() : Array.<string>

Array of CSS classes.

Kind: static method of computed


# .data()

Kind: static method of DruxtEntityMixin
Properties

Name Type Description
model object The model object.