Skip to content

TWebMainMenu

Description

Below is a list of the most important properties methods and events for TWebMainMenu. Represents a menu control with support for sub-menus. The TWebMainMenu optionally can be displayed as a vertical hamburger menu. By default the menu automatically transforms into a hamburger menu if the available browser width is 768 pixels or less. This behavior can be customized with the HamburgerMenu properties.


Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebMainMenu

Property Description
Appearance
Container Sets the external control the menu is displayed in. For example, a TWebPanel control. By default, the menu is displayed in the top left corner of the browser window.
ElementClassName Optionally sets the CSS classname for the label when styling via CSS is used
Items

Events for TWebMainMenu

Property Description
OnChange Event triggered when a menu item is clicked.