0.6.0 • Published 9 years ago
v-togg v0.6.0
v-togg
Vue UI directive. Toggle classes, attributes, properties.
Usage
Attributes
v-togg: vue entry point (must accompanytogg-event)togg-event: event(s) to listen totogg-scope: applicable scopetogg-class: classes to toggle when event occurstogg-attr: attribute to toggle when event occurstogg-prop: property to toggle when event occurstogg-state: force statetrueorfalsefrom event targettogg-triggeradditional events to trigger when event occurstogg-method: jQuery method to invoke when event occurs
Setup
npm install v-togg
npm install v-togg --saverequire the directive
require('v-togg')Create Vue instance
new Vue({
el: '#your-app'
})Related
0.6.0
9 years ago