Skip to content

Instantly share code, notes, and snippets.

View nazrdogan's full-sized avatar
🎯
Busy

Nazır Doğan nazrdogan

🎯
Busy
View GitHub Profile
@nazrdogan
nazrdogan / gist:6094168
Last active December 20, 2015 07:29
Hello World
Merhaba Zalim Dünya!
@nazrdogan
nazrdogan / gist:6140258
Last active December 20, 2015 13:39
Titanium DrillDown Menu
Titanium.UI.setBackgroundColor('#000');
// TAB GRUBU OLUŞTUR
var tabGroup = Titanium.UI.createTabGroup();
// ANA WİNDOW OLUŞTURULUR BUNU HTML'DE BODY GİBİ DÜŞÜNEBİLİRİSNİZ
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
title:'Tab 1',
//Tab bar'ını gizleme için tabBarHidden:true,
var win1 = Titanium.UI.createWindow({
title:'My Drilldown',
backgroundColor:'#fff',
tabBarHidden: true,
});
@nazrdogan
nazrdogan / gist:6140370
Created August 2, 2013 14:39
Titanium DrillDown Menu-Tabbar Gizleme
//Tab bar'ını gizleme için tabBarHidden:true,
var win1 = Titanium.UI.createWindow({
title:'My Drilldown',
backgroundColor:'#fff',
tabBarHidden: true,
});
@nazrdogan
nazrdogan / gist:6140384
Last active December 20, 2015 13:39
Titanium DrillDown Menu -Tablo Ekleme
var main_menu = Ti.UI.createTableView({
style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
scrollable:false
});
@nazrdogan
nazrdogan / gist:6140454
Created August 2, 2013 14:50
Titanium Drilldown Menu-Row ekleme
var firstItemRow = Ti.UI.createTableViewRow({
hasChild: true
});
var firstItemLabel = Ti.UI.createLabel({
left: 9,
text: "Birinci"
});
firstItemRow.add(firstItemLabel);
main_menu.appendRow(firstItemRow);
@nazrdogan
nazrdogan / gist:6140515
Created August 2, 2013 14:58
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});
@nazrdogan
nazrdogan / gist:6140516
Created August 2, 2013 14:58
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});
@nazrdogan
nazrdogan / gist:6140541
Created August 2, 2013 15:00
Titanium DrillDown -Event'ler
// add the event to the first item
firstItemRow.addEventListener('click', function (e) {
tab1.open(sub_win1);
});
// add the event to the second item
secondItemRow.addEventListener('click', function (e) {
tab1.open(sub_win2);
});
// add the event to the third item
thirdItemRow.addEventListener('click', function (e) {
@nazrdogan
nazrdogan / gist:6140679
Created August 2, 2013 15:17
Titanium DrillDown -Tamamı
Titanium.UI.setBackgroundColor('#000');
// TAB GRUBU OLUŞTUR
var tabGroup = Titanium.UI.createTabGroup();
// ANA WİNDOW OLUŞTURULUR BUNU HTML'DE BODY GİBİ DÜŞÜNEBİLİRİSNİZ
var win1 = Titanium.UI.createWindow({
title:'kayhankirgiz.com',
backgroundColor:'#fff' ,
tabBarHidden:true
});
var tab1 = Titanium.UI.createTab({