Dreamweaver.cssstylepalette.setdisplaystyles(), Dreamweaver.cssstylepalette.setmediatype() – Adobe Dreamweaver API Reference CS5 User Manual
Page 400

395
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
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
Nothing.
Enabler
See “
dreamweaver.cssStylePalette.canRenameSelectedStyle()
dreamweaver.cssStylePalette.setDisplayStyles()
Availability
Dreamweaver 8.
Description
This function determines whether to render CSS styles and refreshes the rendering of all open documents.
Arguments
display
•
The display argument is a Boolean value:
true
to render CSS styles; false otherwise.
Returns
Nothing.
Example
The following example turns off rendering of CSS styles:
dw.cssStylePalette.setDisplayStyles(false);
dreamweaver.cssStylePalette.setMediaType()
Availability
Dreamweaver MX 2004.
Description
Sets the target media type for rendering. Refreshes the rendering of all open documents.
Arguments
mediaType
•
The mediaType argument specifies the new target media type.