MQWidget.MenuItem class

A menu item class.

Super classes: MQWidget.WidgetBase

Property

get set Type Name Description
x x string text a displayed string
x x bool checked a checked status
x x bool toggle a toggle
x x bool clickClose Close by click
x x bool separator a separation line
x string systemSVGFile a filename for a system .svg file

Method

Member Description
MenuItem Constructor.
addClickEvent Add an event for clicking.

MenuItem([parent])

Constructor.

Parameters:
MQWidget.WidgetBase parent - A parent widget

addClickEvent(callback)

Add an event for clicking.

Parameters:
function(sender) callback - callback function