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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -