An item in a menu. More...
#include <Wt/Ext/MenuItem>
Public Member Functions | |
MenuItem (const WString &text) | |
Create a new item with given text. | |
MenuItem (const std::string &iconPath, const WString &text) | |
Create a new item with given icon and text. |
An item in a menu.
A menu is always contained by a Menu, and, unlike other widgets, cannot be instantiated on its own (by adding to a WContainerWidget).
Menu item
Menu item with icon
Menu item with icon and menu
Menu item hover effect
Toggled menu item