Skip to content

yuranevmer/TiUniversalPopover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TiUniversalPopover

The TiUniversalPopover common.js module for Titanium that emulates Ti.UI.iPad.Popover on non iPad devices. On iPad it creates native Ti.UI.iPad.Popover, on the other it opens styled window with closing on background click.

Useful for launching iPad apps on iPhones. ##Installation

Copy UniversalPopover.js in app/lib folder.

##Usage

In .XML files simply add module attribute

<Popover module="UniversalPopover" id="popover">
    <ContentView>
        <NavigationWindow>
            ...
        </NaigationWindow>
    </ContentView>
</Popover>

<ContentView> supports have both View or Window as a child.

Or in vanilla Titanium

var contentView = Ti.UI.createView({
    backgroundColor:"red",
    width:"50%",
    height:"50%"
});
var popover = require("UniversalPopover").createPopover({
    contentView: contentView,   //must set before show
    width: 200,
    height: 200
});
popover.show();    

License

MIT

About

Titanium Universal Popover

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published