Skip to content

Instantly share code, notes, and snippets.

@a-bx
Created October 19, 2011 04:08
Show Gist options
  • Select an option

  • Save a-bx/1297458 to your computer and use it in GitHub Desktop.

Select an option

Save a-bx/1297458 to your computer and use it in GitHub Desktop.
Titanium Coffe
Test_titanium.App.tabGroup = Ti.UI.createTabGroup()
sampleWindow = Test_titanium.Views.Sample.createMainWindow
title: 'Sample'
id: 'sampleWindow'
orientationModes: Test_titanium.Helpers.Application.createOrientiationModes
Test_titanium.App.sampleWindow = Ti.UI.createTab
id: 'sampleTab'
className: 'tabElement'
title: 'Tabbar Nativo'
window: sampleWindow
Test_titanium.App.tabGroup.addTab Test_titanium.App.sampleWindow
Test_titanium.App.tabGroup.addEventListener 'focus', (e) ->
Test_titanium.App.currentTab = e.tab
Ti.API.info(Test_titanium.App.currentTab)
Test_titanium.App.tabGroup.open()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment