Servis-Rhino 4211B Betriebsanweisung Seite 162

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 298
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 161
);
A menu item can be disabled using its "disabled" property. Setting that to true disables the
menu item.
Images can be added to menu items using the "iconClass" attribute (see also Button). This
property names a CSS class that declares an icon. For example:
.Calendar_Summary {
background-image:url(text16x16.png);
width:16px;
height:16px;
text-align: center;
background-repeat: no-repeat;
}
Dijit provides a utility widget called popup that can be used to pop-up a menu. The package is
"dijit/popup" which is commonly bound to "popup".
To pop-up a menu, execute
popup.open({<... parms ...>});
See also:
gridx/modules/Menu
Create a Context Menu with Dojo and Dijit
Dijit/Menu – 1.9
Dijit Menus – 1.9
Dojo build sample – 1.9
dijit/Menu
This widget represents a whole menu. The items in the menu are instances of the
dijit/MenuItem class which are then added to the menu through the method called
addChild(menuItem)which can be found on the Menu object.
Imagine that we want to add a context menu to a widget instance referenced by the variable called
"myWidget". We can code:
var menu = new Menu({
targetNodeIds: [myWidget.domNode]
});
now when a right click occurs on myWidget, the context menu will be shown.
Among the properties for this widget are:
activated
active
contextMenuForWindow
currentTarget
leftClickToOpen
ownerDocument
targetNodeIds
Functions
Page 162
Seitenansicht 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 297 298

Kommentare zu diesen Handbüchern

Keine Kommentare