extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
38 lines (34 loc) • 1.09 kB
HTML
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Layouts</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
<!-- GC -->
<script type="text/javascript" src="../../ext-all.js"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
Ext.onReady(function() {
var form = Ext.create('Ext.form.Panel', {
height: 600,
width: 600,
renderTo: Ext.getBody(),
title: 'Form Builder',
tbar: [
{
text: 'Add Textfield',
handler: function() {
form.add({
xtype: 'textfield',
fieldLabel: 'Text item'
});
}
}
]
});
});
</script>
</body>
</html>