javascript - How to use navigator buttons to execute actions other than navigate between pages -
Suppose I have the following snippet for an application that is using Onsnui:
& lt; Ons-navigator-toolbar title = "" left-button-icon = "FA-FLA-FC-edit" left-click-button = "window.alert ('asdf');" Right-button-mark = "FA FA-LG FA-Plus" on-right-button-click = "MyEngler function ();" & Gt; & Lt; / On-sailor-toolbar & gt; Work for events left-click-click and right-click-button Call not found Page tasks Work to navigate between (for example, ons.screen.presentPage ('other_page.html') ). Is this a known Onanseau border, a design theory or just a bug?
This is the angularJS limit.
You can not do this
You can open the window inside your controller's function.
In addition, you have to set your controller on-navigator.
> If you use, on-navigator-toolbar, its scope is not the page, but the area of the Navigator is the current limit of the onen UI, it is being resolved in the next version.
Comments
Post a Comment