API Documentation

DruxtBlocksBlockMixin

blocks

DruxtBlocksBlockMixin

Provides props and computed values for use with a DruxtBlock Wrapper component.

Kind: global mixin
Example

<template>
  <DruxtDebug :json="block" />
</template>

<script>
import { DruxtBlocksBlockMixin } from 'druxt-blocks'

export default {
  mixins: [DruxtBlocksBlockMixin],
}
</script>

.props

Kind: static property of DruxtBlocksBlockMixin


.block : object

The Block JSON:API resource.

Kind: static property of props


.langcode : string

The JSON:API resource language code.

Kind: static property of props


.computed

Kind: static property of DruxtBlocksBlockMixin


.settings() : object

Block settings.

Kind: static method of computed