-
Notifications
You must be signed in to change notification settings - Fork 4
/
ui-stepper.htm
84 lines (64 loc) · 2.93 KB
/
ui-stepper.htm
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<title>UI Stepper</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="basic/basic.min.css">
<script src="basic/basic.min.js" type="text/javascript" charset="utf-8"></script>
<script src="components/ui-stepper.js" type="text/javascript" charset="utf-8"></script>
<script>
var start = function() {
page.color = "whitesmoke";
// *** EXAMPLE 1:
// UI STEPPER: Defaul values.
//UIStepper.resetDefault();
//UIStepper.default.width = 150;
//UIStepper.default.height = 50;
//UIStepper.default.backgroundColor = "transparent";
//UIStepper.default.backgroundBorder = 0;
//UIStepper.default.backgroundBorderColor = "rgba(0, 0, 0, 0.1)";
//UIStepper.default.backgroundRound = 23;
//UIStepper.default.buttonWidth = 42;
//UIStepper.default.buttonHeight = 42;
//UIStepper.default.buttonOuterSpace = 4;
//UIStepper.default.buttonColor = "white";
//UIStepper.default.buttonBorder = 1;
//UIStepper.default.buttonBorderColor = "rgba(0, 0, 0, 0.8)";
//UIStepper.default.buttonRound = 23;
//UIStepper.default.buttonRightShadow = "-1px 0px 3px rgba(0, 0, 0, 0.0)";
//UIStepper.default.buttonLeftShadow = "1px 0px 3px rgba(0, 0, 0, 0.0)";
//UIStepper.default.buttonOpacity = 0.9;
//UIStepper.default.buttonDisableOpacity = 0.4;
//UIStepper.default.iconWidth = 32;
//UIStepper.default.iconHeight = 32;
//UIStepper.default.iconFileDecrease = "components/ui-stepper/decrease.svg";
//UIStepper.default.iconFileIncrease = "components/ui-stepper/increase.svg";
//UIStepper.default.textColor = "rgba(0, 0, 0, 0.8)";
//UIStepper.default.fontSize = 22;
// UI STEPPER: Object description.
UIStepper.create({
minimumNumber: 5,
maximumNumber: 10,
value: 8
});
// Show at:
//that.top = 20;
//that.left = 20;
that.center();
//let value = that.getValue();
//that.setValue(5);
//that.setMinimumNumber(1);
//that.setMaximumNumber(10);
//let minimumNumber = that.getMinimumNumber();
//let maximumNumber = that.getMaximumNumber();
that.onChange(function(uiStepper) {
console.log(uiStepper.getValue());
});
}
</script>
</head>
<body>
<!-- HTML content -->
</body>
</html>