User Guide

CSS functions 425
Example
The following example resets the Element view of all elements in the document without
forcing a refresh of the rendering:
var currentDOM = dw.getDocumentDOM();
currentDOM.resetAllElementViews(false);
dom.setElementView()
Availability
Dreamweaver 8.
Description
This function sets the Element view for the currently selected element in the document. If the
currently selected element is
"normal", the setElementView() function looks for the first
ancestor of the currently selected element that is
"full" or "hidden".
Arguments
view
The view argument, which is required, is a string that sets the currently selected element
to
"full" or "hidden". If the currently selected element, is "normal", the
setElementView() function looks for the currently selected element’s first ancestor that is
either
"full" or "hidden". For additional information, see dom.getElementView()”
on page 421. Possible values are:
"full" — Removes the internal CSS that put the element in "full" view, so that the
element returns to its original state.
"hidden" If the currently selected element is in "hidden" view, Dreamweaver
generates the CSS to cause all content to be viewed and then applies the CSS as an
internal design time style sheet.
Returns
Nothing.
Example
See dom.getElementView()” on page 421.
000_DW_API_Print.book Page 425 Wednesday, July 20, 2005 11:58 AM