Wt: Wt::Ext::MenuItem Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Ext::MenuItem Class Reference
Ext widgets (Wt::Ext, deprecated)

An item in a menu. More...

`#include <Wt/Ext/MenuItem>`

Inheritance diagram for Wt::Ext::MenuItem:
[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).

Menu item
Menu item with icon
Menu item with icon and menu
Menu item hover effect
Toggled menu item

See also:
  Menu, Menu::add(MenuItem *)

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator