ShadowEditor/test/ui/20 TextAreaTest.html
2018-07-04 20:58:46 +08:00

26 lines
579 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>TextArea 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: 'textarea',
value: 'Hello, world',
onChange: function () {
console.log(this.getValue());
}
});
control.render();
</script>
</body>
</html>