forked from visualpython/visualpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoadingSpinner.js
More file actions
46 lines (39 loc) · 1.25 KB
/
Copy pathLoadingSpinner.js
File metadata and controls
46 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Project Name : Visual Python
* Description : GUI-based Python code generator
* File Name : LoadingSpinner.js
* Author : Black Logic
* Note : LoadingSpinner
* License : GNU GPLv3 with Visual Python special exception
* Date : 2022. 08. 26
* Change Date :
*/
//============================================================================
// [CLASS] LoadingSpinner
//============================================================================
define([
__VP_CSS_LOADER__('vp_base/css/component/loadingSpinner'), // INTEGRATION: unified version of css loader
'vp_base/js/com/component/Component'
], function(msgCss, Component) {
/**
* LoadingSpinner
* Usage:
* let loadingSpinner = new LoadingSpinner($(this.wrapSelector('.container')));
* loadingSpinner.remove();
*/
class LoadingSpinner extends Component {
constructor(targetTag) {
super($(targetTag));
}
template() {
return '<div class="vp-loading-spinner"></div>';
}
render() {
super.render();
}
remove() {
$(this.wrapSelector()).remove();
}
}
return LoadingSpinner;
});