
492
Last updated 8/27/2013
Chapter 19: Enablers
Adobe® Dreamweaver® CS5 enabler functions determine whether another function can perform a specific operation
in the current context. The function specifications describe the general circumstances under which each function
returns a
true value. However, the descriptions are not intended to be comprehensive and possibly excludes some
cases in which the function would return a
false value.
Enabler functions
The enabler functions in the JavaScript API include the following functions.
dom.canAlign()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform an Align Left, Align Right, Align Top, or Align Bottom operation.
Arguments
None.
Returns
A Boolean value that indicates whether two or more layers or hotspots are selected.
dom.canApplyTemplate()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform an Apply To Page operation. This function is valid only for the active
document.
Arguments
None.
Returns
A Boolean value that indicates whether the document is not a library item or a template, and that the selection is not
within the
NOFRAMES tag.
Komentarze do niniejszej Instrukcji