]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/energy/app/view/Navigation.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / energy / app / view / Navigation.js
1 Ext.define("EnergyApp.view.Navigation", {
2 extend: "Ext.dataview.NestedList",
3 requires: ['Ext.chart.axis.Category'],
4 xtype: 'navigation',
5 id: 'navigation',
6 config: {
7 toolbar: {
8 id: 'navigationBar'
9 },
10 backButton: Ext.os.is.Phone ? {
11 style: 'font-size: smaller'
12 } : {},
13 store: "NavigationStore",
14 docked: 'left',
15 useTitleAsBackText: false,
16 displayField: 'label',
17 title: 'Category'
18 },
19 constructor: function () {
20 this.callSuper(arguments);
21 this.setHidden(!Ext.os.is.Phone && Ext.Viewport.getOrientation() === 'portrait');
22 }
23 });