v-togg
v0.6.0
Published
Vue UI toggle interaction directive
Downloads
9
Maintainers
Readme
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 statetrue
orfalse
from event targettogg-trigger
additional events to trigger when event occurstogg-method
: jQuery method to invoke when event occurs
Setup
npm install v-togg
npm install v-togg --save
require
the directive
require('v-togg')
Create Vue
instance
new Vue({
el: '#your-app'
})