Wt  3.3.0
Public Member Functions
Wt::Ext::MenuItem Class Reference

An item in a menu. More...

#include <Wt/Ext/MenuItem>

Inheritance diagram for Wt::Ext::MenuItem:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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).

ExtMenuItem-1.png
Menu item
ExtMenuItem-2.png
Menu item with icon
ExtMenuItem-3.png
Menu item with icon and menu
ExtMenuItem-4.png
Menu item hover effect
ExtMenuItem-5.png
Toggled menu item
See also:
Menu, Menu::add(MenuItem *)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Mon Apr 8 2013 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1