ShadowEditor/ShadowEditor.Web/test/ui/08 BooleanTest.html
2018-08-01 21:34:58 +08:00

38 lines
911 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>Boolean Test</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="../../assets/css/main.css" rel="stylesheet" />
<style>
.red {
background-color: #ccc;
}
</style>
</head>
<body>
<script src="../../node_modules/three/build/three.js"></script>
<script src="../../dist/ShadowEditor.js"></script>
<script>
var control = Shadow.UI.create({
xtype: 'boolean',
text: 'Auto Save',
value: true,
cls: 'red',
style: {
borderBottom: '1px solid #aaa'
},
onChange: function () {
UI.msg(this.getValue());
}
});
control.render();
</script>
</body>
</html>