@titanium/turbo
Version:
🚀 Axway Amplify tool to use Turbo for turbo charging your Appcelerator Titanium SDK Framework!
20 lines (17 loc) • 477 B
JavaScript
function openPopover() {
if (Ti.Platform.osname === 'ipad') {
var popover = Alloy.createController('popover').getView();
popover.show({view:$.button1});
} else {
alert('Popover only supported on iPad');
}
}
function openPopoverWithContentView() {
if (Ti.Platform.osname === 'ipad') {
var popover = Alloy.createController('popover_with_window').getView();
popover.show({view:$.button2});
} else {
alert('Popover only supported on iPad');
}
}
$.index.open();