extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
66 lines (60 loc) • 1.92 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>Panels</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,
frame: false,
title: 'My Panel',
collapsible: true,
animCollapse: 2000,
layout: {
type: 'hbox',
align: 'stretch'
},
items: [
{
xtype: 'panel',
flex: 1,
frame: true,
margin: '5 0 5 5',
collapsible: true,
collapseDirection: 'left',
title: 'Second Panel',
html: 'Second Panel interior'
},
{
xtype: 'panel',
flex: 2,
margin: 5,
title: 'Another Panel',
html: 'Another'
}
],
tools: [
{
type: 'close'
},
{
type: 'help',
handler: function() {
alert("There is no help");
}
}
]
});
});
</script>
</body>
</html>