on 10-11-2012 4:42 AM
Hi,
I am trying to add new menuitem programmically, by following code:-
addMenuItem("Approve", "", "", "ExpensePage", "Approve");
The menu should be show up after user click on a button, however, the page didn't refresh and show the menuitem until I navigate from one view to another, then back to previous view.
I tried .page() function and .trigger( "create" ); funtion to refreshing the view, didn't work
Any suggestions on this?
Thousand thanks.
what version of the workflow you were using , if you have sy.ui.iphone.menuBars.js, you could call
$('div.[data-role="header"]',$.mobile.activePage[0] ).menuHeaderBar("positionButtons");
$('div.[data-role="footer"]',$.mobile.activePage[0]).menuFooterBar("positionButtons");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.