@sintexph/vue-lib
Version:
Sintext vue components
37 lines (30 loc) • 876 B
JavaScript
export default {
methods: {
show_wait_success: function (text) {
$('body').loadingModal({
position: 'auto',
text: text,
color: '#fff',
opacity: '0.7',
backgroundColor: '#9dccb0',
animation: 'circle'
});
},
show_wait: function (text) {
$('body').loadingModal({
position: 'auto',
text: text,
color: '#fff',
opacity: '0.7',
backgroundColor: 'rgb(0,0,0)',
animation: 'circle'
});
},
hide_wait: function () {
// hide the loading modal
$('body').loadingModal('hide');
/// destroy the plugin
$('body').loadingModal('destroy');
}
}
}