vue-disabled
A vue directive to automatically disable buttons or other form elements when certain reactive data are true.
Install
npm i -S vue-disabled
Usage
Vue
In a template of a vue component:
... run ...
When this.running
turns true
, the button is disabled, avoiding redundant operations like network loading etc. When this.running
turns false
, the button is recovered.