Wt::Ext::MenuItem Class Reference
[Ext widgets]

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

Generated on Mon Mar 9 08:27:53 2009 for Wt by doxygen 1.5.6