Please check this fiddle and see how I have written code inside Ext.onReady function. While this code is working fine, If I need to write the same code inside a ExtJs view, How can I modify the existing code to include the grid and the group feature inside a view.
When I write code inside, Ext.onReady function, I can define a group the few line down, I can define a toolBar & then declare grid using Ext.create() and then include all these within the grid. But How can i achieve the same in a view???
Ext.define('MyView',
{
extend: 'Ext.window.Window',
alias: 'widget.myView',
id: 'my-window',
title: 'Test',
width: 600,
height: 400,
minWidth: 600,
minHeight: 400,
modal: true,
layout:
{
type: 'vbox',
align: 'stretch'
},
items:
[{
xtype: grid // At this point, how can i declare group feature and include it??
}]
});