Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Css

Hierarchy

  • Css

Index

Methods

Static getStyle

  • getStyle(property: string, element?: HTMLElement): string
  • Parameters

    • property: string
    • Default value element: HTMLElement = document.documentElement

    Returns string

Static getVar

  • getVar(property: string, element?: HTMLElement): string
  • Parameters

    • property: string
    • Default value element: HTMLElement = document.querySelector(':root')

    Returns string

Static objectToVars

  • objectToVars(object: any, element?: HTMLElement, convertToKebabCase?: boolean): void
  • Parameters

    • object: any
    • Default value element: HTMLElement = document.querySelector(':root')
    • Default value convertToKebabCase: boolean = true

    Returns void

Static setStyle

  • setStyle(property: string, value: any, element?: HTMLElement): void
  • Parameters

    • property: string
    • value: any
    • Default value element: HTMLElement = document.documentElement

    Returns void

Static setVar

  • setVar(property: string, value: any, element?: HTMLElement): void
  • Parameters

    • property: string
    • value: any
    • Default value element: HTMLElement = document.querySelector(':root')

    Returns void