Column layout window : Column Layout « Ext JS « JavaScript DHTML






Column layout window

  
<html>
<head>
<title>Hello World Window</title>
<link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.0.0/ext-all.js"></script>

</head>
<body>
<script type="text/javascript">
Ext.onReady(function() {


var myWin = new Ext.Window({
  height       : 200,
  width        : 400,
  border       : false,
  autoScroll   : true,
  id           : 'myWin',
  title        : 'A Column layout',
  layout       : 'column',
  defaults     : {
    frame : true
  },
  items        : [
    {
      title       : 'Col 1',
      id          : 'col1',
      columnWidth : .3
      
    },
    {
      title       : 'Col 2',
      html        : "20% relative width",
      columnWidth : .2
      
    },
    {
      title : 'Col 3',
      html  : "100px fixed width",
      width : 100
    },
    {
      title       : 'Col 4',
      frame       : true,
      html        : "50% relative width",
      columnWidth : .5
    }
  ]
  
});

myWin.show();


});
</script> 
<div id='div1'>asdf</div>
</body>
</html>

   
    
  








Related examples in the same category

1.Set column width
2.Multi Column Layout