Vue Directive
Last updated
Last updated
The WireBootstrap Vue Directive allows any WireBootstrap component to be used inside the Vue.js framework.
To start using the directive, import WireConfigDirective
from WireConfigDirective.js
and register the directive with the Vue.js application.
Outside of the Vue.js framework, WireBootstrap components are bound to HTML elements using the render
method on a new instance of the component class. The example below renders a using the table1
HTML element.
In Vue.js, the same component can be registered using the WireBootstrap Vue Directive.
The directive properties are detailed below.
The wire-component
HTML element attribute is used to tell the WireBootstrap Vue Directive which WireBootstrap component to render. Set this attribute to the fully qualified object name of the WireBootstrap component.
In the example below, the Bootstrap Table component is located off the global wire
object in a class called bsTable
. See the for details.
The v-wire-config
attribute references the registered above. This attribute should be set to the name of the data()
object property containing the WireBootstrap component's in the <scripts>
section of the for the parent component.
For additional examples, visit the .