Macromedia dreamweaver 8-extending dreamweaver 사용자 설명서

다운로드
페이지 504
Item tag attributes
235
file="command_file_path"
Required for pop-up menus and combo boxes. The 
file
 attribute is optional for other types 
of items. The 
file
 attribute specifies the path, relative to the Configuration folder, of a 
command file that contains JavaScript functions to populate, update, and execute the item. 
The 
file
 attribute overrides the 
enabled
checked
value
update
domRequired
menuID
showIf
, and 
command
 attributes. In general, if you specify a command file with the 
file
 
attribute, Dreamweaver ignores all the equivalent attributes that are specified in the tag. For 
more information about command files, see 
.
Example
file="Toolbars/MM/EditTitle.htm"
domRequired="true" or "false"
Optional. As with menus, the 
domRequired
 attribute specifies whether the Design view 
should be synchronized with the Code view before Dreamweaver runs the associated 
command. If you do not specify this attribute, it defaults to a 
true
 value. This attribute is 
equivalent to the 
isDOMRequired()
 function in a toolbar command file.
Example
domRequired="false"
enabled="script"
Optional. As with menus, the script returns a value that specifies whether the item is enabled. 
If you do not specify this attribute, it defaults to enabled. The 
enabled
 attribute is equivalent 
to the 
canAcceptCommand()
 function in a toolbar command file.
Example
enabled="dw.getFocus() == 'textView' || dw.getFocus() == 'html'"
checked="script"
This attribute is required for check buttons and radio buttons. Dreamweaver ignores the 
checked
 attribute for other types of items. As with menus, the script returns a value that 
specifies whether the item is checked or unchecked. The 
checked
 attribute is equivalent to 
isCommandChecked()
 in a toolbar command file. If you do not specify this attribute, it 
defaults to unchecked.