ShadowEditor/ShadowEditor.UI/test/13 InputTest.html
2018-11-12 20:53:32 +08:00

31 lines
631 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>Input 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.UI.js"></script>
<script>
const {
Control,
UI
} = Shadow;
var control = UI.create({
xtype: 'input',
value: '123',
onChange: function () {
UI.msg(`Value: ${this.getValue()}`);
}
});
control.render();
</script>
</body>
</html>