beautypg.com

Dreamweaver.cssstylepalette.getdisplaystyles(), Dreamweaver.cssstylepalette.getmediatype(), Dreamweaver.cssstylepalette.getselectedstyle() – Adobe Dreamweaver API Reference CS5 User Manual

Page 397

background image

392

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

dreamweaver.cssStylePalette.getDisplayStyles()

Availability
Dreamweaver 8.

Description
This function determines whether CSS styles are being rendered. The default value is

true

.

Arguments
None.

Returns
A Boolean value:

true

if CSS styles are being rendered;

false

otherwise.

Example

var areStylesRendered = dw.cssStylePalette.getDisplayStyles();

dreamweaver.cssStylePalette.getMediaType()

Availability
Dreamweaver MX 2004.

Description
Gets target media type for rendering. The default media type is

"screen".

Arguments
None.

Returns
A string value that specifies the target media type.

Example

var mediaType = dw.cssStylePalette.getMediaType();

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.