Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6822] iOS: Feature request to add 'Click' event listener to "Done" button in tabGroup More tab

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T20:40:17.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0, Release 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2011-12-21T12:51:40.000+0000
Updated2017-06-07T20:40:17.000+0000

Description

Feature Request

Implement 'Click' event listener for "Done" button, which is within "More" tab.

allowUserCustomization flag should be set as true in order to edit tabs.

Repro sequence

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup({
	allowUserCustomization: true
});


//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1,
    id:1
});

var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 1',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win1.add(label1);

// 2
// create controls tab and root window
//
var win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2,
    id:2
});

var label2 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 2',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win2.add(label2);


// 3
// create controls tab and root window
//
var win3 = Titanium.UI.createWindow({  
    title:'Tab 3',
    backgroundColor:'#fff'
});
var tab3 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 3',
    window:win3,
    id:3
});

var label3 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 3',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win3.add(label2);



// 4
// create controls tab and root window
//
var win4 = Titanium.UI.createWindow({  
    title:'Tab 4',
    backgroundColor:'#fff'
});
var tab4 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 4',
    window:win4,
    id:4
});

var label4 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 4',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win4.add(label4);




// 5
// create controls tab and root window
//
var win5 = Titanium.UI.createWindow({  
    title:'Tab 5',
    backgroundColor:'#AAA'
});
var tab5 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 5',
    window:win5,
    id:5
});

var label5 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 5',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win5.add(label5);



// 6
// create controls tab and root window
//
var win6 = Titanium.UI.createWindow({  
    title:'Tab 6',
    backgroundColor:'#fff'
});
var tab6 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 6',
    window:win6,
    id:6
});

var label6 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 6',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win6.add(label6);

//
//  add tabs - MANUALLY -

tabGroup.addTab(tab1);  
tabGroup.addTab(tab2);  
tabGroup.addTab(tab6);  
tabGroup.addTab(tab4);  
tabGroup.addTab(tab5);  
tabGroup.addTab(tab3);  


// open tab group
tabGroup.open();

function getCurrentOrders(){
	for( i = 0; i <7; i++) {
		Ti.API.info('>>>>> ' + tabGroup.tabs[i].id);
	}		
}

Associated HD ticket

APP-942318

Attachments

FileDateSize
TabGroup-Configure.jpg2011-12-21T12:51:40.000+000029879

Comments

  1. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress in the past 5 years.

JSON Source