Adobe 38040334 API Reference - Page 350
when the stylesheet node is selected., value or it is omitted
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 350 highlights
DREAMWEAVER CS3 345 API Reference dreamweaver.cssStylePalette.getSelectedStyle() Availability Dreamweaver 3; fullSelector available in Dreamweaver MX. Description Gets the name of the style that is currently selected in the Styles panel. Arguments fullSelector • The fullSelector argument is a Boolean value that indicates whether the full selector or only the class should return. If nothing is specified, only the class name returns. For instance, p.class1 is a selector that means the style is applied to any p tag of class1, but it does not apply, for instance, to a div tag of class1. Without the fullSelector argument, the dreamweaver.cssStylePalette.getSelectedStyle() function returns only the class name, class1, for the selector. The fullSelector argument tells the function to return p.class1 instead of class1. Returns When the fullSelector argument is a true value, the function returns either the full selector or an empty string when the stylesheet node is selected. When the fullSelector argument is a false value or it is omitted, a string that represents the class name of the 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 red is selected, a call to the dw.cssStylePalette.getSelectedStyle() function returns "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 null value. dreamweaver.cssStylePalette.getStyles() Availability Dreamweaver 3.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/350.png)