Windows or Views Navigation
Hi
Developing a app which has a set of buttons in the header that will act as the main navigation.
The way it works now is: app.js opens a new main window that is fullscreen, I then add views for the header logo and buttons.
When you click the first button I open a new window underneath the header.
I now want to be able to click another button on the bar to close the win.
Here is the code: http://pastie.org/1284625
I will eventually set the current window to a global variable so that no matter which button is clicked the current win/view will be known.
Should I be using a view instead?
1 Answer
-
Accepted Answer
"Just thought of something, Should I have my main nav as an external file and then everytime I create a window add the nav to it?"
This is what I would do, Kevin. Use Ti.include() to achieve it.