Created
October 23, 2011 18:41
-
-
Save brandon-beacher/1307693 to your computer and use it in GitHub Desktop.
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
Ext.Loader.setConfig({ enabled: true }); | |
Ext.application({ | |
name: 'BeltlineBikeShop', | |
autoCreateViewport: true | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Beltline Bike Shop</title> | |
<link rel="stylesheet" href="/resources/css/sencha-touch.css" type="text/css"> | |
<link rel="stylesheet" href="/resources/css/app.css" type="text/css"> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript" src="/sencha-touch-all.js"></script> | |
<script type="text/javascript" src="/app.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
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
Ext.define('BeltlineBikeShop.view.MainTabPanel', { | |
extend: 'Ext.TabPanel', | |
xtype: 'mainTabPanel', | |
config: { | |
items: [ | |
{ | |
title: 'Our Shop', | |
iconCls: 'home' | |
}, | |
{ | |
title: 'The Beltline', | |
iconCls: 'star' | |
}, | |
{ | |
title: 'Bike Racks', | |
iconCls: 'search' | |
} | |
], | |
tabBarPosition: 'bottom' | |
} | |
}); |
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
Ext.define('BeltlineBikeShop.view.Viewport', { | |
extend: 'Ext.Panel', | |
requires: [ | |
'BeltlineBikeShop.view.MainTabPanel' | |
], | |
config: { | |
fullscreen: true, | |
items: [ | |
{ | |
xtype: 'toolbar', | |
docked: 'top', | |
title: 'Beltline Bike Shop' | |
}, | |
{ | |
xtype: 'mainTabPanel', | |
docked: 'bottom' | |
} | |
] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment