A WMenu provides a list of items which are associated
with some contents, and of which one is selected at a time.
A WMenu works in conjunction with a WStackedWidget, which manages
the contents.
By default, the menu does not provide any styling, and can be
rendered using HTML <ul> and <li>
elements. It should be styled using CSS. The look and behaviour
of menu items can be customized by reimplementing these
items. For example, the WTabWidget is merely a
specialized menu.
You can create items with submenus by using the WSubMenuItem
rather than the default WMenuItem.
A menu has full support for bookmarks and the back button, by
rendering its items using WAnchor
and making use of internal paths.
The panel at the left is implemented using a WMenu.