2018-02-05 12:11:01 +01:00
|
|
|
/**
|
|
|
|
* Just an example component
|
|
|
|
*/
|
2018-02-09 13:10:40 +01:00
|
|
|
import $ from 'jquery';
|
2018-02-05 12:11:01 +01:00
|
|
|
|
|
|
|
const SpinnerUI = (($) => {
|
|
|
|
class SpinnerUI {
|
|
|
|
static show(callback) {
|
2018-02-09 13:10:40 +01:00
|
|
|
$('#PageLoading').show(0, callback);
|
2018-02-05 12:11:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static hide(callback) {
|
2018-02-09 13:10:40 +01:00
|
|
|
$('#PageLoading').hide('slow', callback);
|
2018-02-05 12:11:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return SpinnerUI;
|
|
|
|
})($);
|
|
|
|
|
2018-02-09 13:10:40 +01:00
|
|
|
export default SpinnerUI;
|