<menuitem>

JavaScript: lz.menuitem

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
command expression any null read/write
  the command object assigned to be executed when this menuitem is selected

Attributes inherited from <textlistitem>

text_x, text_y

Attributes inherited from <listitem>

height

Attributes inherited from <baselistitem>

selected

Attributes inherited from <basevaluecomponent>

type, value

Methods

setCommand()
menuitem.setCommand(cmd : lz.Command);
call this method to set the command associated with a menuitem
Parameter Name Type Description
cmd lz.Command the command object to be executed when this menuitem is selected

setHilite()
menuitem.setHilite(ishilite : Boolean);
Called automatically by the menu. The default action uses the colors defined in a styles object to change the colors of the background and text.
Parameter Name Type Description
ishilite Boolean true shows the hilite and false restores it back

Methods inherited from <baselistitem>

setHilite

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onselect this event is sent to the menuitem when it is selected

Events inherited from <baselistitem>

onselect, onselected

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy