UNPKG

@titanium/turbo

Version:

Turbo is a variation of Titanium Alloy that adds some enhancements and customizations for rapid development.

20 lines (17 loc) 477 B
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();