0

Qooxdoo can add a NavigationPage to the manager:

var manager = new qx.ui.mobile.page.Manager();
var page1 = new qx.ui.mobile.page.NavigationPage();
manager.addDetail(page1);

Now I want to create a Page instead and add a NavigationBar myself. The manager.addDetail only accepts NavigationPages. How to add the qx.ui.mobile.page.Page?

var page2 = new qx.ui.mobile.page.Page();
var navigationbar = new qx.ui.mobile.navigationbar.NavigationBar();
page2.add(navigationbar);
//... Adding buttons in navigationbar
manager.addDetail(page2); //fails: !(page2 instanceof qx.ui.mobile.page.NavigationPage

The answer: "Use NavigationPage is not usefull for me :)".

Niels Steenbeek
  • 4,692
  • 2
  • 41
  • 50

1 Answers1

1

What do you want to do with qx.Mobile Page? What prevents you from using the NavigationPage?You can even hide the NavigationBar if needed.

The Manager needs the NavigationBar, Buttons and some other properties which are only provided by the NavigationPage.

czuendorf
  • 853
  • 6
  • 9
  • I'm trying to parse some xml notation to Qooxdoo. In the parsing I don't know on forehand whether the page is a NavigationPage or a normal one. Example: But when it's not possible to use the normal Page, I will use the NavigationPage and hide the NavigationBar when needed. Thanks for the suggestion. – Niels Steenbeek Apr 12 '13 at 06:41