Adobe 38040334 - Dreamweaver CS3 User Manual page 350

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dreamweaver.cssStylePalette.getSelectedStyle()
Availability
Dreamweaver 3;
fullSelector
Description
Gets the name of the style that is currently selected in the Styles panel.
Arguments
fullSelector
• The
argument is a Boolean value that indicates whether the full selector or only the class should
fullSelector
return. If nothing is specified, only the class name returns. For instance,
style is applied to any
p
argument, the
fullSelector
the class name,
class1
instead of
.
class1
Returns
When the
fullSelector
when the stylesheet node is selected.
When the
fullSelector
selected style returns. If the selected style does not have a class or a stylesheet node is selected, an empty string
returns.
Example
If the style
is selected, a call to the
red
dreamweaver.cssStylePalette.getSelectedTarget() (deprecated)
Availability
Dreamweaver 3; deprecated in Dreamweaver MX because there is no longer an Apply To Menu in the Styles panel.
Description
This function gets the selected element in the Apply To pop-up menu at the top of the Styles panel.
Arguments
None.
Returns
A deprecated function; always returns a
dreamweaver.cssStylePalette.getStyles()
Availability
Dreamweaver 3.
available in Dreamweaver MX.
tag of
, but it does not apply, for instance, to a
class1
dreamweaver.cssStylePalette.getSelectedStyle()
, for the selector. The
fullSelector
argument is a
value, the function returns either the full selector or an empty string
true
argument is a
value or it is omitted, a string that represents the class name of the
false
dw.cssStylePalette.getSelectedStyle()
value.
null
is a selector that means the
p.class1
tag of
div
argument tells the function to return
function returns
DREAMWEAVER CS3
API Reference
. Without the
class1
function returns only
p.class1
.
"red"
345

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents