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

  • 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 48
43
EXTENDING DREAMWEAVER CS4
Customizing Code view
The value attribute is the string that Dreamweaver inserts in the document when you select the command. When
the user selects the item from the menu and presses Enter or Return, Dreamweaver replaces all the text that the user
typed since the menu opened. The user typed the pattern-matching characters before the menu opened, so
Dreamweaver does not insert them again.
The icon attribute, which is optional, specifies the path to an image file that Dreamweaver displays as an icon to
the left of the menu text. The location is expressed as a URL, relative to the Configuration folder.
The object attribute refers to the type the menuitem belongs to. For example, Built-In Data Type: String or user-
defined data type custom JavaScript file.
The source attribute refers to the location in which it is defined or originates from. For example, DOM/Javascript/
custom file.js.
The static attribute is a Boolean value. static = true indicates that the method does not work on specific object
instance, but works on object type itself. For example,
Number.MAX_VALUE
The propType attribute refers to property type, which in turn can be an object type to support cascaded hinting of
properties. For example,
domElement.innerHTML.<code hints for String type>
The item attribute refers to the type of element when propType attribute is the collection container type. The item
specifies what type each item in the container is (assuming it is a homogenous set, that is, elements of the same
type).
Contents
None.
Container
The menu tag.
<event>
Description
This tag describes events of an object and has the following standard attributes.
Attributes
label, icon, source, object
The label attribute is the name of the event.
The icon attribute specifies the path to an image file that Dreamweaver displays as an icon beside the menu text.
The source attribute refers to the location in which it is defined or originates from.
The object attribute refers to the type the command belongs to.
Container
The menu tag.
Example
<event label="onblur" source="DOM 1&amp;2" icon="shared/mm/images/codeHintEvent.gif"/>
Zobrazit stránku 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 386 387

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

Žádné komentáře