Backend\Traits\VueMaker

Overview

VueMaker Trait adds Vue based methods to a class

To add a component call the registerVueComponent method:

$this->registerVueComponent('Plugin/VueComponents/MyComponent');

This will automatically load the component's JavaScript definition, component template, and CSS file.

See Also

Protected Properties

protected array $vueComponents

vueComponents contains Vue component classes


Public Methods

public outputVueComponentTemplates()

public outputVueComponentTemplates(): void

public registerDefaultVueComponents()

public registerDefaultVueComponents(): void

public registerVueComponent()

public registerVueComponent(string $className): void

registerVueComponent to be loaded when the action view renders.

Protected Methods

protected isVueComponentRegistered()

protected isVueComponentRegistered($className): void

protected makeVueComponent()

protected makeVueComponent($className): void