ShadowEditor/test/ui/14 IntegerTest.html
2018-07-04 07:51:26 +08:00

28 lines
624 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>Integer Test</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<body>
<script src="../../dist/ShadowEditor.js"></script>
<script>
var control = Shadow.UI.XType.create({
xtype: 'int',
value: 50,
range: [0, 100],
step: 10,
onChange: function () {
console.log(`Value: ${this.getValue()}`);
}
});
control.render();
</script>
</body>
</html>