Skip to content

Instantly share code, notes, and snippets.

@jbuda
Created March 8, 2013 15:10
Show Gist options
  • Save jbuda/5117070 to your computer and use it in GitHub Desktop.
Save jbuda/5117070 to your computer and use it in GitHub Desktop.
Sencha controller for handling a container part of a navigation stack that shows hides tab bar
Ext.define 'TestApp.controller.Item'
extend: 'Ext.app.Controller'
config:
refs:
newsPanel:'newspanel'
newsItem:'newsitem'
mainPanel:'maintoolbar'
control:
newsPanel:
back:'clickBackEvent'
'show':(record)->
this.getNewsPanel().push(xtype:'newsitem')
this.getMainPanel().getTabBar().hide()
'clickBackEvent':(button)->
this.getMainPanel().getTabBar().show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment