-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
58 lines (54 loc) · 1.29 KB
/
index.js
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
/**
* @file mofron-comp-okdialog/index.js
* @brief jspreadsheet component for mofron
* @license MIT
*/
const Dialog = require("mofron-comp-dialog");
module.exports = class extends Dialog {
/**
* initialize component
*
* @param (mixed) string: label text
* key-value: component config
* @type private
*/
constructor (p1) {
try {
super();
this.modname("OKDialog");
/* init config */
if (0 < arguments.length) {
this.config(p1);
}
} catch (e) {
console.error(e.stack);
throw e;
}
}
/**
* initialize dom contents
*
* @type private
*/
initDomConts () {
try {
super.initDomConts();
this.button(
"OK",
{
size: new mofron.class.ConfArg("1.5rem","0.3rem"),
clickEvent: new mofron.class.ConfArg(
(p1,p2,p3) => {
p3.visible(false);
},
this
)
}
);
} catch (e) {
console.error(e.stack);
throw e;
}
}
}
/* end of file */