4 'Ext.container.Viewport',
5 'Ext.layout.container.Border',
10 Ext.define('Person', {
11 extend: 'Ext.data.Model',
12 fields: ['first', 'last', 'review', {
18 Ext.onReady(function(){
20 // setup the state provider, all state information will be saved to a cookie
21 Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
23 Ext.create('Ext.container.Viewport', {
28 styleHtmlContent: true,
33 'Between refreshes, the grid below will remember',
35 '<li>The hidden state of the columns</li>',
36 '<li>The width of the columns</li>',
37 '<li>The order of the columns</li>',
38 '<li>The sort state of the grid</li>',
45 handler: function(btn){
46 Ext.create('Ext.window.Window', {
51 title: 'State Window',
53 stateId: 'stateWindowExample',
54 styleHtmlContent: true,
57 'Between refreshes, this window will remember:',
59 '<li>The width and height</li>',
60 '<li>The x and y position</li>',
61 '<li>The maximized and restore states</li>',
77 title: 'Collapse/Width Panel',
79 stateId: 'statePanelExample',
83 'Between refreshes, this panel will remember:',
85 '<li>The collapsed state</li>',
91 stateId: 'stateGridExample',
93 store: Ext.create('Ext.data.Store', {
99 review: 'Solid performance, needs to comment code more!'
104 review: 'Excellent worker, has written over 100000 lines of code in 3 months. Deserves promotion.'
109 review: 'Insists on using one letter variable names for everything, lots of bugs introduced.'
114 review: 'Average. Works at the pace of a snail but always produces reliable results.'
119 review: 'Only a junior, but showing a lot of promise. Coded a Javascript parser in Assembler, very neat.'