Permalink
Browse files

Bring over some of the simple ext examples from old repo

  • Loading branch information...
1 parent d9d425c commit 32f3267806031cd8c0bfffa0a2031a84e0b30599 @lojjic lojjic committed Aug 8, 2012
Showing with 5,007 additions and 0 deletions.
  1. BIN area-chart.xda
  2. +14 −0 area-chart/app.html
  3. +29 −0 area-chart/app.js
  4. +52 −0 area-chart/app/store/MyStore.js
  5. +178 −0 area-chart/app/view/MyWindow.js
  6. +22 −0 area-chart/app/view/Viewport.js
  7. +64 −0 area-chart/area-chart.xds
  8. +20 −0 area-chart/metadata/Application
  9. +10 −0 area-chart/metadata/resource/Library
  10. +121 −0 area-chart/metadata/store/MyStore
  11. +268 −0 area-chart/metadata/view/MyWindow
  12. BIN array-grid.xda
  13. +14 −0 array-grid/app.html
  14. +34 −0 array-grid/app.js
  15. +260 −0 array-grid/app/store/MyArrayStore.js
  16. +72 −0 array-grid/app/view/MyGridPanel.js
  17. +22 −0 array-grid/app/view/Viewport.js
  18. +64 −0 array-grid/array-grid.xds
  19. +38 −0 array-grid/metadata/Application
  20. +10 −0 array-grid/metadata/resource/Library
  21. +114 −0 array-grid/metadata/store/MyArrayStore
  22. +120 −0 array-grid/metadata/view/MyGridPanel
  23. BIN check-tree.xda
  24. +14 −0 check-tree/app.html
  25. +29 −0 check-tree/app.js
  26. +39 −0 check-tree/app/store/MyJsonTreeStore.js
  27. +72 −0 check-tree/app/view/CheckTreePanel.js
  28. +22 −0 check-tree/app/view/Viewport.js
  29. +62 −0 check-tree/check-nodes.json
  30. +63 −0 check-tree/check-tree.xds
  31. +20 −0 check-tree/metadata/Application
  32. +10 −0 check-tree/metadata/resource/Library
  33. +57 −0 check-tree/metadata/store/MyJsonTreeStore
  34. +95 −0 check-tree/metadata/view/CheckTreePanel
  35. BIN dynamic-form.xda
  36. +14 −0 dynamic-form/app.html
  37. +31 −0 dynamic-form/app.js
  38. +175 −0 dynamic-form/app/view/ComplexForm.js
  39. +110 −0 dynamic-form/app/view/ComplexLayoutForm.js
  40. +55 −0 dynamic-form/app/view/MyViewport.js
  41. +111 −0 dynamic-form/app/view/SimpleFieldsetsForm.js
  42. +82 −0 dynamic-form/app/view/SimpleForm.js
  43. +110 −0 dynamic-form/app/view/TabbedForm.js
  44. +22 −0 dynamic-form/app/view/Viewport.js
  45. +99 −0 dynamic-form/dynamic-form.xds
  46. +22 −0 dynamic-form/metadata/Application
  47. +10 −0 dynamic-form/metadata/resource/Library
  48. +411 −0 dynamic-form/metadata/view/ComplexForm
  49. +202 −0 dynamic-form/metadata/view/ComplexLayoutForm
  50. +67 −0 dynamic-form/metadata/view/MyViewport
  51. +225 −0 dynamic-form/metadata/view/SimpleFieldsetsForm
  52. +150 −0 dynamic-form/metadata/view/SimpleForm
  53. +257 −0 dynamic-form/metadata/view/TabbedForm
  54. BIN menu.xda
  55. +14 −0 menu/app.html
  56. +29 −0 menu/app.js
  57. +48 −0 menu/app/store/ComboStore.js
  58. +30 −0 menu/app/view/MyComboBox.js
  59. +146 −0 menu/app/view/MyPanel.js
  60. +22 −0 menu/app/view/Viewport.js
  61. +73 −0 menu/menu.xds
  62. +20 −0 menu/metadata/Application
  63. +10 −0 menu/metadata/resource/Library
  64. +56 −0 menu/metadata/store/ComboStore
  65. +18 −0 menu/metadata/view/MyComboBox
  66. +379 −0 menu/metadata/view/MyPanel
View
Binary file not shown.
View
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+
+<!-- Auto Generated with Sencha Architect -->
+<!-- Modifications to this file will be overwritten. -->
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>area-chart</title>
+ <script src="http://extjs.cachefly.net/ext-4.0.7-commercial/ext-all.js"></script>
+ <link rel="stylesheet" href="http://extjs.cachefly.net/ext-4.0.7-commercial/resources/css/ext-all.css">
+ <script type="text/javascript" src="app.js"></script>
+</head>
+<body></body>
+</html>
View
@@ -0,0 +1,29 @@
+/*
+ * File: app.js
+ *
+ * This file was generated by Sencha Architect version 2.0.0.
+ * http://www.sencha.com/products/architect/
+ *
+ * This file requires use of the Ext JS 4.0.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * details see http://www.sencha.com/license or contact license@sencha.com.
+ *
+ * This file will be auto-generated each and everytime you save your project.
+ *
+ * Do NOT hand edit this file.
+ */
+
+Ext.Loader.setConfig({
+ enabled: true
+});
+
+Ext.application({
+ stores: [
+ 'MyStore'
+ ],
+ views: [
+ 'MyWindow'
+ ],
+ autoCreateViewport: true,
+ name: 'MyApp'
+});
@@ -0,0 +1,52 @@
+/*
+ * File: app/store/MyStore.js
+ *
+ * This file was generated by Sencha Architect version 2.0.0.
+ * http://www.sencha.com/products/architect/
+ *
+ * This file requires use of the Ext JS 4.0.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * details see http://www.sencha.com/license or contact license@sencha.com.
+ *
+ * This file will be auto-generated each and everytime you save your project.
+ *
+ * Do NOT hand edit this file.
+ */
+
+Ext.define('MyApp.store.MyStore', {
+ extend: 'Ext.data.Store',
+
+ constructor: function(cfg) {
+ var me = this;
+ cfg = cfg || {};
+ me.callParent([Ext.apply({
+ storeId: 'MyStore',
+ fields: [
+ {
+ name: 'name'
+ },
+ {
+ name: 'data1'
+ },
+ {
+ name: 'data2'
+ },
+ {
+ name: 'data3'
+ },
+ {
+ name: 'data4'
+ },
+ {
+ name: 'data5'
+ },
+ {
+ name: 'data6'
+ },
+ {
+ name: 'data7'
+ }
+ ]
+ }, cfg)]);
+ }
+});
@@ -0,0 +1,178 @@
+/*
+ * File: app/view/MyWindow.js
+ *
+ * This file was generated by Sencha Architect version 2.0.0.
+ * http://www.sencha.com/products/architect/
+ *
+ * This file requires use of the Ext JS 4.0.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * details see http://www.sencha.com/license or contact license@sencha.com.
+ *
+ * This file will be auto-generated each and everytime you save your project.
+ *
+ * Do NOT hand edit this file.
+ */
+
+Ext.define('MyApp.view.MyWindow', {
+ extend: 'Ext.window.Window',
+ alias: 'widget.mywindow',
+
+ autoShow: true,
+ height: 600,
+ width: 800,
+ shadow: false,
+ layout: {
+ type: 'fit'
+ },
+ title: 'Area Chart',
+ maximizable: true,
+
+ initComponent: function() {
+ var me = this;
+
+ Ext.applyIf(me, {
+ dockedItems: [
+ {
+ xtype: 'toolbar',
+ dock: 'top',
+ items: [
+ {
+ xtype: 'button',
+ text: 'Reload Data',
+ listeners: {
+ click: {
+ fn: me.onButtonClick,
+ scope: me
+ }
+ }
+ },
+ {
+ xtype: 'button',
+ enableToggle: true,
+ pressed: true,
+ text: 'Animate',
+ listeners: {
+ toggle: {
+ fn: me.onButtonToggle,
+ scope: me
+ }
+ }
+ }
+ ]
+ }
+ ],
+ items: [
+ {
+ xtype: 'chart',
+ height: 250,
+ itemId: 'chart',
+ width: 400,
+ animate: true,
+ insetPadding: 20,
+ store: 'MyStore',
+ axes: [
+ {
+ type: 'Numeric',
+ fields: [
+ 'data1',
+ 'data2',
+ 'data3',
+ 'data4',
+ 'data5',
+ 'data6',
+ 'data7'
+ ],
+ grid: {
+ odd: {
+ opacity: 1,
+ fill: '#ddd',
+ stroke: '#bbb',
+ 'stroke-width': 1
+ }
+ },
+ position: 'left',
+ title: 'Numeric Axis',
+ minimum: 0
+ },
+ {
+ type: 'Category',
+ fields: [
+ 'name'
+ ],
+ grid: true,
+ label: {
+ rotate: {
+ degrees: 315
+ }
+ },
+ position: 'bottom',
+ title: 'Month of the Year'
+ }
+ ],
+ series: [
+ {
+ type: 'area',
+ xField: 'name',
+ yField: [
+ 'data1',
+ 'data2',
+ 'data3',
+ 'data4',
+ 'data5',
+ 'data6',
+ 'data7'
+ ]
+ }
+ ]
+ }
+ ],
+ listeners: {
+ afterrender: {
+ fn: me.onWindowAfterRender,
+ scope: me
+ }
+ }
+ });
+
+ me.callParent(arguments);
+ },
+
+ onButtonClick: function(button, e, options) {
+ this.refreshData();
+ },
+
+ onButtonToggle: function(button, pressed, options) {
+ var chart = this.child('chart');
+ chart.animate = pressed ? {easing: 'ease', duration: 500} : false;
+ },
+
+ onWindowAfterRender: function(abstractcomponent, options) {
+ this.refreshData();
+ },
+
+ refreshData: function() {
+ var data = [],
+ floor = 20,
+ n = 12,
+ i;
+
+ for (i = 0; i < n; i++) {
+ data.push({
+ name: Ext.Date.monthNames[i % 12],
+ data1: Math.floor(Math.max((Math.random() * 100), floor)),
+ data2: Math.floor(Math.max((Math.random() * 100), floor)),
+ data3: Math.floor(Math.max((Math.random() * 100), floor)),
+ data4: Math.floor(Math.max((Math.random() * 100), floor)),
+ data5: Math.floor(Math.max((Math.random() * 100), floor)),
+ data6: Math.floor(Math.max((Math.random() * 100), floor)),
+ data7: Math.floor(Math.max((Math.random() * 100), floor)),
+ data8: Math.floor(Math.max((Math.random() * 100), floor)),
+ data9: Math.floor(Math.max((Math.random() * 100), floor))
+ });
+ }
+
+ this.child('chart').store.loadData(data);
+
+ }
+
+});
@@ -0,0 +1,22 @@
+/*
+ * File: app/view/Viewport.js
+ *
+ * This file was generated by Sencha Architect version 2.0.0.
+ * http://www.sencha.com/products/architect/
+ *
+ * This file requires use of the Ext JS 4.0.x library, under independent license.
+ * License of Sencha Architect does not include license for Ext JS 4.0.x. For more
+ * details see http://www.sencha.com/license or contact license@sencha.com.
+ *
+ * This file will be auto-generated each and everytime you save your project.
+ *
+ * Do NOT hand edit this file.
+ */
+
+Ext.define('MyApp.view.Viewport', {
+ extend: 'MyApp.view.MyWindow',
+ renderTo: Ext.getBody(),
+ requires: [
+ 'MyApp.view.MyWindow'
+ ]
+});
View
@@ -0,0 +1,64 @@
+{
+ "name": "area-chart",
+ "settings": {
+ "urlPrefix": "http://localhost/",
+ "spacesToIndent": 4,
+ "exportPath": "",
+ "lineEnding": "LF",
+ "genTimestamps": false,
+ "cacheBust": false,
+ "codeGenFormat": "Class",
+ "senchaIoKey": "",
+ "senchaIoPath": "http://extjs.cachefly.net/designer/IO/",
+ "instantiateStore": true,
+ "saveOnDeploy": false,
+ "appName": "MyApp",
+ "cssPath": ""
+ },
+ "xdsVersion": "2.0.0",
+ "xdsBuild": 557,
+ "schemaVersion": 1,
+ "upgradeVersion": 210000000495,
+ "framework": "ext40",
+ "topInstanceFileMap": {
+ "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16": {
+ "paths": [
+ "metadata/view/MyWindow",
+ "app/view/override/MyWindow.js",
+ "app/view/MyWindow.js",
+ "app/view/Viewport.js"
+ ],
+ "className": "MyWindow"
+ },
+ "613a5e61-a5b9-4423-8837-9f746de96e01": {
+ "paths": [
+ "metadata/store/MyStore",
+ "app/store/override/MyStore.js",
+ "app/store/MyStore.js"
+ ],
+ "className": "MyStore"
+ },
+ "464e301b-dd9d-4c4b-b030-b6874e6ff0be": {
+ "paths": [
+ "metadata/resource/Library"
+ ],
+ "className": "Library"
+ }
+ },
+ "viewOrderMap": {
+ "view": [
+ "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16"
+ ],
+ "store": [
+ "613a5e61-a5b9-4423-8837-9f746de96e01"
+ ],
+ "controller": [],
+ "model": [],
+ "resource": [
+ "464e301b-dd9d-4c4b-b030-b6874e6ff0be"
+ ],
+ "app": [
+ "application"
+ ]
+ }
+}
@@ -0,0 +1,20 @@
+{
+ "type": "application",
+ "reference": {
+ "name": "items",
+ "type": "array"
+ },
+ "codeClass": null,
+ "userConfig": {
+ "stores": [
+ "MyStore"
+ ],
+ "views": [
+ "MyWindow"
+ ],
+ "autoCreateViewport": true,
+ "name": "MyApp"
+ },
+ "id": "ExtBox1-ext-gen78246",
+ "designerId": "application"
+}
Oops, something went wrong.

0 comments on commit 32f3267

Please sign in to comment.