API Documentation
Druxt
Druxt
Utility component for rendering Druxt modules.
Example
<Druxt
:module="module"
:props-data="propsData"
:wrapper="{
component,
propsData: {}
}"
/>
- Druxt
- instance
- static
.setModuleComponent()
Sets the module component and propsData.
Kind: instance method of Druxt
.props
Vue.js Props.
Kind: static property of Druxt
object
.inner : Inner element.
Kind: static property of props
Default: { component: 'div', propsData: {} }
string
.module : The DruxtJS module to render.
Kind: static property of props
Example (Using the DruxtJS Site module.)
<Druxt module="site" />
object
.propsData : Props data to bind to the specified DruxtJS module.
Kind: static property of props
Example (Using the DruxtJS Entity module to render a 'node--article' resource.)
<Druxt
module="entity"
:props-data="{
mode: 'teaser',
type: 'node--article',
uuid
}"
/>
Array
| Boolean
| Date
| Number
| Object
| String
.value : The module value.
Kind: static property of props
Model:
object
.wrapper : Wrapper element.
Kind: static property of props
Default: { component: 'div', propsData: {} }
.v-model
The module value.
Kind: static property of props
.data()
Vue.js Data object.
Kind: static method of Druxt
Properties
Name | Type | Description |
---|---|---|
components | objects | The module and wrapper components settinsg. |
model | object | The model object. |