MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Manual do Utilizador Página 16

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 28
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 15
16
file The name of an HTML file containing JavaScript that controls the menu item. Specify a
path to the file relative to the Configuration folder. (For example, the Help > Welcome menu
item specifies
file="Commands/Welcome.htm".) Note that the file attribute overrides the
command, enabled, and checked attributes. You must specify either file or command for each
menu item. For information on creating a command file using the History panel, see
Dreamweaver Help. For information on writing your own JavaScript commands, see Extending
Dreamweaver (Help > Extending Dreamweaver).
checked A JavaScript expression that indicates whether the menu item has a check mark next to
it in the menu; if the expression evaluates as
true, the item is displayed with a check mark.
dynamic If present, indicates that a menu item is to be determined dynamically, by an HTML
file; the file contains JavaScript code to set the text and state of the menu item. If you specify a tag
as
dynamic, you must also specify a file attribute.
isdomrequired Indicates whether to synchronize the Design view and the Code view before
executing the code for this menu item. Valid values are
"true" (the default) and "false". If you
set this attribute to "false", it means that the changes to the file that this menu item makes do
not use the Dreamweaver DOM. For information about the DOM, see Extending Dreamweaver
(Help > Extending Dreamweaver).
Contents
None (empty tag).
Container
This tag must be contained in a menu tag.
Example
<menuitem name="_New" key="Cmd+N" enabled="true" command="dw.createDocument()"
id="DWMenu_File_New" />
<separator>
Description
Indicates that a separator should be displayed at the corresponding location in the menu.
Attributes
{app}
app
The name of the application in which the separator is shown. Not currently used.
Contents
None (empty tag).
Container
This tag must be contained in a menu tag.
Example
<separator />
Vista de página 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 27 28

Comentários a estes Manuais

Sem comentários