ShadowEditor/ShadowEditor.UI/test/06 BreakTest.html
2018-11-11 21:50:07 +08:00

36 lines
739 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>06 BreakTest</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: 'div',
children: [{
xtype: 'span',
html: 'First line.'
}, {
xtype: 'br'
}, {
xtype: 'span',
html: 'Second line.'
}]
});
control.render();
</script>
</body>
</html>