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

  • 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 94
89
EXTENDING DREAMWEAVER CS4
User interfaces for extensions
For readability, TREECOLUMN tags should follow immediately after the MM:TREECONTROL tag, as shown in the following
example:
<MM:TREECONTROL name="tree1">
<MM:TREECOLUMN name="Column1" width="100" state="visible">
<MM:TREECOLUMN name="Column2" width="80" state="visible">
...
</MM:TREECONTROL>
The MM:TREENODE attributes are described in the following table:
For example, the following tree control has all its nodes expanded:
<mm:treecontrol name="test" style="height:300px;width:300px">
<mm:treenode value="rootnode1" state="expanded">
<mm:treenode value="node1" state="expanded"></mm:treenode>
<mm:treenode value="node3" state="expanded"></mm:treenode>
</mm:treenode>
<mm:treenode value="rootnode2"0state="expanded">
<mm:treenode value="node2" state="expanded"></mm:treenode>
<mm:treenode value="node4" state="expanded"></mm:treenode>
</mm:treenode>
</mm:treecontrol>
Attribute name Description
name Name of the column
value String to appear in column header
width Width of the column in pixels (percentage not supported); default is 100
align Optional. Specifies whether the text in the column should be aligned left, right, or
center; default is left
state Specifies whether the column is visible or hidden
Attribute name Description
name Name of the node
value Contains the content for the given node. For more than one column, this is a pipe-
delimited string. To specify an empty column, place a single space character before
the pipe (|).
state Specifies that the node is expanded or collapsed with the strings "expanded" or
"collapsed".
selected You can select multiple nodes by setting this attribute on more than one tree node, if
the tree has a MULTIPLE attribute.
icon Optional. The index of built-in icon to use, starting with 0:
0 = no icon; 1 = Dreamweaver document icon; 2 = multidocument icon
Zobrazit stránku 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 386 387

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

Žádné komentáře