![]() ![]() To create a modal window, set the modal property to true in the dictionary passed toĮither the Titanium.UI.createWindow() method or the Window object's open() method. For example, if an action requires the user to login, theĪpplication can present a login window, then after the user is authenticated, the normal flow A modal window requires the user to interact with it to resume the In the user interface, a modal window is a window that blocks the main application UI until the $.label.text = $.args.foobar # Modal Windows foobar // For Alloy projects, you can also pass in context // with the Alloy.createController method and retrieve // it in the controller code. Note that for Alloy projects, you can simply pass the context as the second argument of theĪlloy.createController method, then retrieve the data with the special variable $.args The second window loads the same module and is able to retrieve the content saved by the first Loads the foo module and uses the set method to store some data before opening the second window. Module exposes two methods to store and retrieve an object. ![]() To save information from one window then retrieve it in another. ![]() To take up the entire screen, covering any other UI, specify fullscreen:true Status bar, and in the case of windows contained in tab groups, the tab bar. There are a few specialized views that manage windows:īy default, windows occupy the entire screen except for the navigation bar, Windows contain other views, but in general they are not contained inside Closing a window removes the window and its children from the render stack. Views to be added to the application's render stack, on top of any previously opened Opening a window causes the window and its child To create a window, use the Titanium.UI.createWindow method or a Alloy element.Ī window is a top-level container which can contain other views. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |