Adobe 38040334 - Dreamweaver CS3 User Manual page 41

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

<classlibrary name="Spry Keywords" id="CodeColor_JavascriptSpry">
<class>Spry.Data.XMLDataSet</class>
<class>Spry.Widget.Accordion</class>
</classlibrary>
Where:
is a new tag to group the classes into the color id
classlibrary
is used to list each individual class available in the class library. The list of classes can grow to include other
class
spry classes from different spry packages (such as: Debug, Data, Utils, Widgets, and Effects), or other Asynchronous
JavaScript and XML (Ajax) toolkits or JavaScript libraries.
Crosstag attributes code hinting
Dreamweaver provides code hinting for the Spry attribute names and values. Since these attributes are common
across tags, instead of opening each tag.vtm file and adding the Spry attribute list, Dreamweaver has a new xml
format for attribute groups (for example: spry:region, spry:repeat) and tag groups which can be applied in a single
VTM file named Spry.vtm in the Configuration/TagLibraries directory.
Spry attribute grouping format
The following code shows the format of the .vtm file. This format allows you to specify the attributes that apply to
certain tags.
Note: The format for Spry attribute grouping can also be used outside the Spry framework.
<crosstag_attributes>
<attributegroup id="group_id_1" name="group_name_1">
<attrib name = "fooAttr1">
<attrib name = "barAttr1">
...
<taggroup>
<tag name = "fooTag1">
<tag name = "barTag1">
...
</taggroup>
</attribgroup>
<attributegroup id="group_id_2" name="group_name_2">
<attrib name = "fooAttr2">
<attrib name = "barAttr2">
...
<taggroup>
<tag name = "fooTag2">
<tag name = "barTag2">
...
</taggroup>
</attribgroup>
</crosstag_attributes>
Where:
lists the attributes for the tag group that follows.
attributegroup
lists the tags to which the preceding attributes apply.
taggroup
"CodeColor_JavascriptSpry"
DREAMWEAVER CS3
35
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents