-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo.js
54 lines (48 loc) · 1.31 KB
/
Demo.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
/* ************************************************************************
qooxdoo mobile grid
https://github.com/hkollmann/hkollmann.mobilegrid
Copyright:
2018 Henner Kollmann ([email protected])
License:
MIT: https://opensource.org/licenses/MIT
This software is provided under the same licensing terms as Qooxdoo,
please see the LICENSE file in the Qooxdoo project's top-level directory
for details.
Authors:
Henner Kollmann ([email protected])
************************************************************************ */
/**
*
* @type Demo
* demo class for mobile grid
*/
qx.Class.define("hkollmann.mobilegrid.demo.Demo", {
extend: qx.ui.mobile.page.NavigationPage,
include: [qx.locale.MTranslation],
construct() {
super();
this.setTitle(this.tr("Simple Demo"));
},
members: {
/**
*
* @overridden
*/
_initialize() {
super._initialize();
var grid = new hkollmann.mobilegrid.ui.container.Grid();
for (var r = 0; r < 5; r++) {
for (var c = 0; c < 5; c++) {
var lbl = new qx.ui.mobile.basic.Label(
this.tr("col %1, row %2", c, r)
);
grid.add(lbl, {
row: r,
col: c,
});
}
}
this.getContent().add(grid);
},
},
});