Skip to content
Last updated

API / geotoolkit / report / dom / css / CssUtil / CssUtil

Class: CssUtil

css.CssUtil.CssUtil

Helper class for CSS Object Mode The class CssUtil contains common methods for procession Css Styles in document.

Table of contents

Constructors
  • [new CssUtil()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.report.dom.css.cssutil.cssutil.md#new cssutil())
Methods

Contents

Constructors

new CssUtil()

• new CssUtil()

Methods

getClassName

▸ getClassName(): string

Returns

string


getClassName

▸ Static getClassName(): string

Returns

string


getClassesByTag

▸ Static getClassesByTag(cssObject, tagName, classNames?): string[]

Return all availabls CSS Classes <tag class=""/> in specified CSS object or document

Parameters

Name Type Description
cssObjectDocument | CssStyleSheet | CssStyleRulecss style sheet
tagNamestringtag name
Optional classNamesstring[]class names

Returns

string[]

available class names