Skip to content

Drupal Views components for Druxt with support for filters, pagination and sorting.

DruxtBlockViewsBlock

View source on GitHub

DruxtBlockViewsBlock

Views block.

This component is intended to be rendered by the <DruxtBlock /> component.

  • Renders a Views block component.

See: DruxtBlock
Example

<DruxtBlock
  uuid="43d613c6-ab66-453d-bce1-e1dfc990b4a1"
/>

.mixins

Kind: static property of DruxtBlockViewsBlock
See: DruxtBlocksBlockMixin


.computed

Kind: static property of DruxtBlockViewsBlock


.displayId : string

The View Display ID.

Kind: static property of computed


.propsData : object

Properties to pass through to the <DruxtViews /> component.

Kind: static property of computed
See: DruxtView


.viewId : string

The View ID.

Kind: static property of computed


.settings() : object

Block settings.

Kind: static method of computed


.data()

Vue.js Data object.

Used for on-demand JSON:API resource loading.

Kind: static method of DruxtBlockViewsBlock
Properties

NameTypeDescription
uuidstring | booleanThe Views JSON:API resource UUID.

.fetch()

Nuxt fetch method.

Kind: static method of DruxtBlockViewsBlock


.props

Kind: static property of DruxtBlockViewsBlock


.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