Adobe Extending Dreamweaver CS4 Uživatelský manuál Strana 319

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 387
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 318
313
EXTENDING DREAMWEAVER CS4
Components
getContextMenuId()
Availability
Dreamweaver MX.
Description
Returns the context menu ID for the component type. Every component type can have a context menu associated with
it. The Context Menu pop-up menus are defined in the ComponentNameMenus.xml file, and they work the same way
as the menu.xml file. The menu string can be static or dynamic. Keyboard shortcuts (accelerator keys) are supported.
Arguments
None.
Returns
A string defining the context menu ID.
Example
The following example sets the Options menu for the Components panel for CFCs associated with the Adobe
ColdFusion server model.The example also defines the keyboard shortcuts for the menu:
function getContextMenuId()
{
return "DWCFCsContext";
}
The DWWebServicesContext of the menu is defined in the file in the
Configuration/Components/ColdFusion/CFCs/CFCsMenus.xml as follows:
Zobrazit stránku 318
1 2 ... 314 315 316 317 318 319 320 321 322 323 324 ... 386 387

Komentáře k této Příručce

Žádné komentáře