cf2:dom.Element#Styles

Purpose

Allows authors to fix device specific issues with setting styles on an element.

Note:

All the methods expect or return the camelized versions of the property name, not the standard CSS hyphenated names. For example, backgroundColor not background-color.

Exported Features

cf2:dom.Element#Styles

Imported Features

cf2:dom.Element - enhances

JavaScript

This component adds the following methods to the V$.dom.Element's prototype object.

v_setStyles(styles)

Sets the styles of the selected element.

Parameter Description Type
styles The map of the properties to set on the selected element. Map
v_getStyle(property)

Returns the value of the specified style property set on the selected element.

Parameter Description Type
property The name of the style property which value is to be returned. String

Related topics