Description
There are a handful of setters with 2 arguments missing since the setter/getter removal, these should still be maintained as they are not simple setters.
* Android
** -Ti.UI.Slider.setValue- (2 arg version is iOS only I think, so maybe mark iOS only?) documentation is invalid here
* iOS
** -TiUI.Picker.setValue- documentation is invalid here
**- Ti.UI.TabGroup.setToolbar- documentation is invalid here
** Ti.UI.Window.setToolbar
** -Ti.UI.iOS.SplitWindow.setToolbar- documentation is invalid here
** Ti.UI.iOS.SplitWindow.setShowMasterInPortrait
** Ti.UI.iOS.SplitWindow.setMasterIsOverlayed
var win1 = Ti.UI.createWindow();
var tab1 = Ti.UI.createTab({
window: win1,
title: 'Tab 1'
});
var win2 = Ti.UI.createWindow({
backgroundColor: 'yellow'
});
var tab2 = Ti.UI.createTab({
window: win2,
title: 'Tab 2'
});
var tabGroup = Ti.UI.createTabGroup();
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
setTimeout(() => {
console.log('ListSection')
var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables', items: [] })
console.log(vegSection.setItems);
console.log('Slider')
var slider = Ti.UI.createSlider()
console.log(slider.setValue)
console.log('WebView')
var wv = Ti.UI.createWebView()
console.log(wv.setHtml)
if (OS_ANDROID) {
} else if (OS_IOS) {
console.log('Picker')
var picker = Ti.UI.createPicker()
console.log(picker.setValue)
console.log('TabGroup')
console.log(tabGroup.setToolbar)
console.log('Window')
console.log(win1.setToolbar)
console.log('SplitWindow')
var splitWin = Ti.UI.iOS.createSplitWindow({
detailView: win1,
masterView: win2
});
console.log(splitWin.setToolbar)
console.log(splitWin.setShowMasterInPortrait())
console.log(splitWin.setMasterIsOverlayed)
}
}, 2500)
Steps to reproduce
Actual
Some logs show undefined
Expected
No logs should show undefined
https://github.com/appcelerator/titanium_mobile/pull/12806
Window.setToolbar test - No error thrown, toolbar should be at bottom of Window
SplitWindow.setShowMasterInPortrait/setMasterIsOverlayed - Click detail window, main should show, click main and detail should move
The rest are docs fixes so no code tests
merged to master and 10_0_X branch for 10.0.0 target.