3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
18 'Ext.container.Viewport',
19 'Ext.layout.container.Border',
24 Ext.define('Person', {
25 extend: 'Ext.data.Model',
26 fields: ['first', 'last', 'review', {
32 Ext.onReady(function(){
34 // setup the state provider, all state information will be saved to a cookie
35 Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
37 Ext.create('Ext.container.Viewport', {
42 styleHtmlContent: true,
47 'Between refreshes, the grid below will remember',
49 '<li>The hidden state of the columns</li>',
50 '<li>The width of the columns</li>',
51 '<li>The order of the columns</li>',
52 '<li>The sort state of the grid</li>',
59 handler: function(btn){
60 Ext.create('Ext.window.Window', {
65 title: 'State Window',
67 stateId: 'stateWindowExample',
68 styleHtmlContent: true,
71 'Between refreshes, this window will remember:',
73 '<li>The width and height</li>',
74 '<li>The x and y position</li>',
75 '<li>The maximized and restore states</li>',
91 title: 'Collapse/Width Panel',
93 stateId: 'statePanelExample',
97 'Between refreshes, this panel will remember:',
99 '<li>The collapsed state</li>',
100 '<li>The width</li>',
105 stateId: 'stateGridExample',
107 store: Ext.create('Ext.data.Store', {
113 review: 'Solid performance, needs to comment code more!'
118 review: 'Excellent worker, has written over 100000 lines of code in 3 months. Deserves promotion.'
123 review: 'Insists on using one letter variable names for everything, lots of bugs introduced.'
128 review: 'Average. Works at the pace of a snail but always produces reliable results.'
133 review: 'Only a junior, but showing a lot of promise. Coded a Javascript parser in Assembler, very neat.'