![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Скачать руководство пользователя страница 575](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054575.webp)
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
Содержание DREAMWEAVER 8-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 16: ......
Страница 28: ...28 The File I O API...
Страница 38: ...38 The HTTP API...
Страница 68: ...68 Flash Integration...
Страница 100: ...100 The Database API...
Страница 116: ...116 The JavaBeans API...
Страница 144: ...144 The Source Control Integration API...
Страница 146: ......
Страница 254: ...254 Workspace...
Страница 298: ...298 Site...
Страница 354: ...354 Document...
Страница 396: ...396 Page Content...
Страница 488: ...488 Design...
Страница 550: ...550 Code...