Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CssUtility

routines for inline CSS

export

Hierarchy

  • CssUtility

Index

Constructors

Methods

  • getColorHex(color: string): null | string
  • getComputedStylePropertyValue(element: HTMLElement, propertyName: string): null | string
  • gets @type {CSSStyleDeclaration} data

    Parameters

    • element: HTMLElement
    • propertyName: string

    Returns null | string

  • getComputedStylePropertyValueById(elementId: string, propertyName: string): null | string
  • gets @type {CSSStyleDeclaration} data

    Parameters

    • elementId: string
    • propertyName: string

    Returns null | string

  • getComputedStylePropertyValueByQuery(query: string, propertyName: string): null | string
  • gets @type {CSSStyleDeclaration} data

    Parameters

    • query: string
    • propertyName: string

    Returns null | string

  • getOpacity(opacity: string): number
  • getPixelValue(pixels: number): string
  • getUri(uri: string): string
  • setComputedStylePropertyValue(element: HTMLElement, propertyName: string, propertyValue: string): void
  • gets @type {CSSStyleDeclaration} data

    Parameters

    • element: HTMLElement
    • propertyName: string
    • propertyValue: string

    Returns void

Generated using TypeDoc