vue-whatsnewSlider is a mobile loading whatsnewSlider plugin for vue.js.
First, install vue-whatsnewSlider
from npm:
$ npm install vue-whatsnewSlider
Then use it:
// ES6 mudule
import whatsnewSlider from 'vue-whatsnewSlider';
// CommonJS
const whatsnewSlider = require('vue-whatsnewSlider').default;
Open an whatsnewSlider:
whatsnewSlider.open();
Open an whatsnewSlider with a string:
whatsnewSlider.open('Loading...');
Open an whatsnewSlider with an object:
whatsnewSlider.open({ text:'Loading...', spinnerType: 'fading-circle' });
Then close it:
whatsnewSlider.close();
Option | Description | Value | Default |
---|---|---|---|
text | whatsnewSlider text | String | |
spinnerType | spinner type | 'snake', 'fading-circle', 'double-bounce', 'triple-bounce' | 'snake' |
MIT