Enablers
575
Example
The following code checks whether the enabler function has been set to the value
true
before
allowing edits to the selected rule:
if(dw.cssRuleTracker.canEditSelectedRule()){
dw.cssRuleTracker.editSelectedRule();
}
dreamweaver.cssStylePalette.canApplySelectedStyle()
Availability
Dreamweaver MX.
Description
Checks the current active document to see whether the selected style can be applied.
Arguments
{ pane }
■
The
pane
argument, which is optional, is a string that specifies the pane of the Styles
Panel to which this function applies. Possible values are
"stylelist"
, which is the list of
styles in “All” mode;
"cascade"
, which is the list of applicable, relevant rules in “Current”
mode;
"summary"
, which is the list of properties for the current selection in “Current”
mode; and
"ruleInspector"
, which is the editable list or grid of properties in “Current”
mode. The default value is
"stylelist"
.
Returns
A Boolean value:
true
if the selected style has a class selector;
false
otherwise.
dreamweaver.cssStylePalette.canDeleteSelectedStyle()
Availability
Dreamweaver MX.
Description
Checks the current selection to determine whether the selected style can be deleted.
000_DW_API_Print.book Page 575 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...