x4js - v2.2.49
    Preparing search index...

    Class Stylesheet

    Index
    _rules: Map<string, number> = ...
    _sheet: CSSStyleSheet
    doc_style: CSSStyleDeclaration
    guid: number = 1
    • add a new rule to the style sheet

      Parameters

      • name: string

        internal rule name

      • definition: any

        css definition of the rule

      Returns void

      setRule('xbody', "body { background-color: #ff0000; }" );
      
    • Returns the computed value of a CSS custom property (CSS variable) from the document's root element.

      Parameters

      • name: string

        variable name

      Returns any

      let color = Component.getCss( ).getVar( 'button-color' );