File

src/lib/services/sz-css-class.service.ts

Description

A service that provides the capability to "dynamically" add CSS classes to the head of the document or app. Also can dynamically set css vars on the document body.

Index

Methods

Constructor

constructor()

Methods

Public removeStyle
removeStyle(selectorText: string, styleName?: string)

dynamically remove a css class by selector and

Parameters :
Name Type Optional
selectorText string No
styleName string Yes
Returns : void
Public setStyle
setStyle(selectorText: string, styleName: string, value: string)

dynamically set/create a css class and it's values

Parameters :
Name Type Optional
selectorText string No
styleName string No
value string No
Returns : void
Public setVariable
setVariable(variableName: string, value: string)

dynamically set a css variable on the body element

Parameters :
Name Type Optional
variableName string No
value string No
Returns : void

results matching ""

    No results matching ""