forked from wnielson/sencha-SlideNavigation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated component to work with Sencha Touch 2.1.
This also includes a number of enhancements such as: * event support - see app/controller for example * automatic CSS styling be default Note: This will no longer work as-is with older versions of Sencha Touch.
- Loading branch information
Showing
25 changed files
with
388 additions
and
6,882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//<debug> | ||
Ext.Loader.setPath({ | ||
'Ext': 'sdk/src', | ||
'Ext': 'touch/src', | ||
'Ext.ux': './ux' | ||
}); | ||
//</debug> | ||
|
@@ -9,22 +9,34 @@ Ext.application({ | |
name: 'SlideNavigationExample', | ||
|
||
requires: [ | ||
'Ext.Msg' | ||
'Ext.MessageBox' | ||
], | ||
|
||
views: [ | ||
'Main' | ||
], | ||
|
||
controllers: [ | ||
'Main' | ||
], | ||
|
||
icon: { | ||
57: 'resources/icons/Icon.png', | ||
72: 'resources/icons/Icon~ipad.png', | ||
114: 'resources/icons/[email protected]', | ||
144: 'resources/icons/[email protected]' | ||
'57': 'resources/icons/Icon.png', | ||
'72': 'resources/icons/Icon~ipad.png', | ||
'114': 'resources/icons/[email protected]', | ||
'144': 'resources/icons/[email protected]' | ||
}, | ||
|
||
isIconPrecomposed: true, | ||
|
||
startupImage: { | ||
'320x460': 'resources/startup/320x460.jpg', | ||
'640x920': 'resources/startup/640x920.png', | ||
'768x1004': 'resources/startup/768x1004.png', | ||
'748x1024': 'resources/startup/748x1024.png', | ||
'1536x2008': 'resources/startup/1536x2008.png', | ||
'1496x2048': 'resources/startup/1496x2048.png' | ||
}, | ||
|
||
phoneStartupScreen: 'resources/loading/Homescreen.jpg', | ||
tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg', | ||
|
||
launch: function() { | ||
// Destroy the #appLoadingIndicator element | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Ext.define("SlideNavigationExample.controller.Main", { | ||
extend: 'Ext.app.Controller', | ||
|
||
config: { | ||
refs: { | ||
slideNav: 'slidenavigationview' | ||
}, | ||
|
||
control: { | ||
slideNav: { | ||
open: function(nav, position, duration) { | ||
console.log('Container open (position='+position+',duration='+duration+')'); | ||
}, | ||
|
||
close: function(nav, position, duration) { | ||
console.log('Container close (position='+position+',duration='+duration+')'); | ||
}, | ||
|
||
select: function(nav, item, index) { | ||
console.log('Selected item (index='+index+')'); | ||
}, | ||
|
||
opened: function(nav) { | ||
console.log('Container opened'); | ||
}, | ||
|
||
closed: function(nav) { | ||
console.log('Container closed'); | ||
}, | ||
|
||
slideend: function(nav) { | ||
console.log('Container slideend'); | ||
}, | ||
|
||
slidestart: function(nav) { | ||
console.log('Container slidestart'); | ||
}, | ||
|
||
dragstart: function(nav) { | ||
console.log('Container dragstart'); | ||
}, | ||
|
||
dragend: function(nav) { | ||
console.log('Container dragend'); | ||
} | ||
} | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.