extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
57 lines (52 loc) • 1.66 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() {
Ext.create('Ext.panel.Panel', {
renderTo: Ext.getBody(),
height: 300,
width: 500,
title: 'Top Panel',
layout: {
type: 'accordion'
},
items: [
{
xtype: 'panel',
title: 'My Panel',
html : 'test'
},
{
xtype: 'panel',
title: 'North Panel',
html : 'test'
},
{
xtype: 'panel',
title: 'Second Panel',
items: [
{
xtype: 'button',
text: 'Button 1'
},
{
xtype: 'button',
text : 'Button 2'
}
]
}
]
});
});
</script>
</body>
</html>