You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the proper way of showing a win-menu from an win-tool-bar-command?
The example for win-menu relies only on the id element of a button:
<buttonid="menuAnchor">Show a menu!</button><win-menuanchor="'#menuAnchor'"><win-menu-commandlabel="'command the first'"></win-menu-command><win-menu-commandlabel="'command the second'"></win-menu-command><win-menu-commandlabel="'this would be a great place for ng-repeater...'"></win-menu-command></win-menu>
<win-tool-bar-commandon-click="showSortMenu(this)" /><win-menuwin-control="winMenuControl" flyout="'#myFlyout'" anchor="'#menuAnchor'"><win-menu-commandlabel="'command the first'"></win-menu-command><win-menu-commandlabel="'command the second'"></win-menu-command><win-menu-commandlabel="'this would be a great place for ng-repeater...'"></win-menu-command></win-menu><divid="myFlyout"></div>
I simply tried to add an empty myFlyout element, but obviously not working. I have also tried various solutions with and a combination of anchor, ids and flyout properties.
The text was updated successfully, but these errors were encountered:
What is the proper way of showing a win-menu from an win-tool-bar-command?
The example for win-menu relies only on the id element of a button:
the win-menu exposes these properties:
I don't see how I can from my on-click handler on the win-tool-bar-command show and hide the menu?
Setting id property on the win-tool-bar-command has no effect.
Tried to look at the main source as well, and the old documentation: http://winjs.azurewebsites.net/#menu
My code looks something like this now, and I get exception: "Invalid argument: Flyout anchor element not found in DOM."
I simply tried to add an empty myFlyout element, but obviously not working. I have also tried various solutions with and a combination of anchor, ids and flyout properties.
The text was updated successfully, but these errors were encountered: