Hello.
I have left a question on the discussion forum, but I want to send this
email to you because I don't know if the messages from the discussion forum
reach this mailing list.
In any case:
Hello.
I would like to add a nagivation page to a drawer.
Is any of that possible?
This is what I have so far (the drawer is empty, it doesnt display the
NavigationPage page2):
qx.Class.define("drawer00.Application",
{
extend : qx.application.Mobile,
/*
*****************************************************************************
MEMBERS
*****************************************************************************
*/
members :
{
/**
* This method contains the initial application code and gets
called
* during startup of the application
*/
main : function()
{
// Call super class
this.base(arguments);
// Enable logging in debug variant
if (qx.core.Environment.get("qx.debug"))
{
// support native logging capabilities, e.g. Firebug for
Firefox
qx.log.appender.Native;
// support additional cross-browser console. Press F7 to toggle
visibility
qx.log.appender.Console;
}
/*
-------------------------------------------------------------------------
Below is your actual application code...
Remove or edit the following code to create your application.
-------------------------------------------------------------------------
*/
var page1 = new qx.ui.mobile.page.NavigationPage();
var drawer = new qx.ui.mobile.container.Drawer(page1, new
qx.ui.mobile.layout.VBox());
var navigation = new qx.ui.mobile.container.Navigation();
page1.setTitle("Page 1");
page1.addListener("initialize", function()
{
drawer.show();
},this);
var page2 = new qx.ui.mobile.page.NavigationPage();
page2.setTitle("Page 2");
page2.setShowBackButton(true);
page2.setBackButtonText("Back");
page2.addListener("initialize", function()
{
var label = new qx.ui.mobile.basic.Label("Content of Page 2");
page2.getContent().add(label);
},this);
page2.addListener("back", function() {
page1.show({reverse:true});
}, this);
// Add the pages to the page manager.
drawer.add(navigation);
drawer.add(page2);
var manager = new qx.ui.mobile.page.Manager(false);
manager.addDetail([
page1,
]);
// Page1 will be shown at start
page1.show();
page2.show();
}
}
});
Thanks for your time and kind concern.
jenia
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel