Skip to content

Instantly share code, notes, and snippets.

@nazrdogan
Created August 2, 2013 14:58
Show Gist options
  • Save nazrdogan/6140515 to your computer and use it in GitHub Desktop.
Save nazrdogan/6140515 to your computer and use it in GitHub Desktop.
Titanium Drilldown Menu-Alt Menu
var sub_win1 = Ti.UI.createWindow({title:'Alt Window-1'});
var sub_table1 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED});
var sub_row1 = Ti.UI.createTableViewRow();
var sub_label1 = Ti.UI.createLabel({left:9, text: "Alt Menu 1!"});
sub_row1.add(sub_label1);
sub_table1.appendRow(sub_row1);
sub_win1.add(sub_table1);
// sub window 2
var sub_win2 = Ti.UI.createWindow({title:' Alt Window 2'});
var sub_table2 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED});
var sub_row2 = Ti.UI.createTableViewRow();
var sub_label2 = Ti.UI.createLabel({left:9, text: "Alt Menu 2!"});
sub_row2.add(sub_label2);
sub_table2.appendRow(sub_row2);
sub_win2.add(sub_table2);
// sub window 3
var sub_win3 = Ti.UI.createWindow({title:'Alt Window 3'});
var sub_table3 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED});
var sub_row3 = Ti.UI.createTableViewRow();
var sub_label3 = Ti.UI.createLabel({left:9, text: "Alt Menu 3!"});
sub_row3.add(sub_label3);
sub_table3.appendRow(sub_row3);
sub_win3.add(sub_table3);
// sub window 4
var sub_win4 = Ti.UI.createWindow({title:'Alt Window 4'});
var sub_table4 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED});
var sub_row4 = Ti.UI.createTableViewRow();
var sub_label4 = Ti.UI.createLabel({left:9, text: "Alt Menu 4!"});
sub_row4.add(sub_label4);
sub_table4.appendRow(sub_row4);
sub_win4.add(sub_table4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment