forked from visualpython/visualpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEqualVarTest.js
More file actions
65 lines (56 loc) · 1.81 KB
/
Copy pathEqualVarTest.js
File metadata and controls
65 lines (56 loc) · 1.81 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* Project Name : Visual Python
* Description : GUI-based Python code generator
* File Name : EqualVarTest.js
* Author : Black Logic
* Note : Equal Variance Test
* License : GNU GPLv3 with Visual Python special exception
* Date : 2023. 05. 09
* Change Date :
*/
//============================================================================
// [CLASS] EqualVarTest
//============================================================================
define([
'vp_base/js/com/com_util',
'vp_base/js/com/com_Const',
'vp_base/js/com/com_String',
'vp_base/js/com/component/PopupComponent',
'vp_base/js/com/component/DataSelector'
], function(com_util, com_Const, com_String, PopupComponent, DataSelector) {
/**
* EqualVarTest
*/
class EqualVarTest extends PopupComponent {
_init() {
super._init();
/** Write codes executed before rendering */
}
_bindEvent() {
super._bindEvent();
/** Implement binding events */
var that = this;
}
templateForBody() {
/** Implement generating template */
return `This is sample.
<input type="text" id="sample" class="vp-state vp-input" readonly="" />`;
}
render() {
super.render();
let dataSelector = new DataSelector({
type: 'data',
pageThis: this,
id: 'sample',
finish: function() {
;
}
});
$(this.wrapSelector('#sample')).replaceWith(dataSelector.toTagString());
}
generateCode() {
return "print('sample code')";
}
}
return EqualVarTest;
});