Control.addStyleBySelector

Syntax

addStyleBySelector (style: Object | PP.Style | String, selector: String, clearPrevious: Boolean);

Parameters

style. Style

selector. CSS selector.

clearPrevious. Determines whether to clear the set styles. By default the parameter is set to False, and the styles are not cleared.

Description

The addStyleBySelector method creates a block that contains a style with specified CSS selector.

Example

The example of method use is given in description of the Control.removeEvent method.

See also:

Control