Skip to content

CSS.helper

jefferson oliveira edited this page Mar 7, 2018 · 3 revisions

CSS

CSS

Kind: global class

csS.getClassHash()() ⇒ String

Creates a random class name.

Kind: instance method of CSS

csS.hasNicobar(element) ⇒ Boolean

Checks if the element has or not the Nicobar class name set

Kind: instance method of CSS
Returns: Boolean - Status if the element has or not the nicobar class name

Param Type Description
element HTMLElement Element that can already have added the Nicobar class

csS.intelligentSelector(element) ⇒ String

Get's the name of the selector for the component

Kind: instance method of CSS
Returns: String - selector string.

Param Type
element HTMLElement

csS.fromObjToCss(object) ⇒ String

Conversts the Custom Properties object to CSS

Kind: instance method of CSS
Returns: String - the CSS code with custom properties.

Param Type Description
object Object Custom properties names collection