Commits

Nils Dehl committed 5d828bc

Rewrote as own Component Ext.ux.PathMenu and updated to sencha touch 2.0.1.1

  • Participants
  • Parent commits 92a7750

Comments (0)

Files changed (1370)

 Ext.Loader.setPath({
-	'PathMenu': 'modules/PathMenu',
 	'Ext': 'sdk/src',
-	'Ext.io': 'lib/io/src/io',
-	'Ext.cf': 'lib/io/src/cf'
+	'Ext.ux': 'libs/ux'
 });
 Ext.application({
+	name: 'Path',
+
+	path: {
+		'Ext.ux': 'libs/ux'
+	},
 	controllers: [
-		'Application',
-		'PathMenu.controller.Menu'
+		'Application'
 	],
 
-	name: 'Path',
-
 	requires: [
 		'Ext.MessageBox'
 	],
         {
             "path": "resources/css/app.css",
             "update": "delta"
+        },
+        {
+            "path": "http://fonts.googleapis.com/css?family=Ubuntu"
         }
+
     ],
 
     /**

File app/controller/Application.js

 Ext.define('Path.controller.Application', {
 	extend: 'Ext.app.Controller',
+	requires: ['Ext.ux.PathMenu'],
 
 	config: {
-		views: [
-			'Viewport'
-		],
-
+		views: ['Dummy'],
 
 		refs: {
-			mainView: 'mainview'
-
 		},
 		control: {
-
+			'button[pathButtonType=menuitem]': {
+				itemtap: 'onPathMenuItemTap'
+			}
 		}
 	},
 
 	// called when the Application is launched, remove if not needed
 	launch: function(app) {
 		this.initViewport();
+		Ext.create('Ext.ux.PathMenu',{
+			bottom: 10,
+			left: 10,
+			items: [
+				{
+					iconCls: 'action',
+					cardIndex: 0
+				},
+				{
+					iconCls: 'add',
+					cardIndex: 1
+				},
+				{
+					iconCls: 'compose',
+					cardIndex: 2
+				},
+				{