Align menu to right of toolbar

Hi,

In the following snippet:
http://webix.com/snippet/db27021e

  1. I have a menu button (ellipsis-v) that I would like to be aligned on the right. How can I achieve this?

  2. I did not understand why nothing happens when I click on the submenu item “Notebooks” - since I have setup an event handler for OnItemClick?

  3. I found that the same code did not work well with touch.css:
    http://bauerapps.com/files/header_touch.png
    The menu button has inverted colors. Is this something I can fix, or is it a bug in touch.css?

Thanks
Rael

Hi,

I did not understand why nothing happens when I click on the submenu item “Notebooks” - since I have setup an event handler for OnItemClick?

“config” property of “menu” sets properties top menu. If you want to set configuration for sub-menus, you should use “submenuConfig” instead:

 submenuConfig:{
      on:{ 
           onItemClick:function(id){
                webix.message("Submenu click: "+id);
           }
      }
 }

But there is no need to use “menu”, try to use “icon” view with attached popup:

http://webix.com/snippet/9385500d