Class Stylesheet

-- [

STYLESHEET

] -----------------------------------------------------------------

Hierarchy

  • Stylesheet

Constructors

Properties

Methods

Constructors

Properties

m_rules: Map<string, number> = ...
m_sheet: CSSStyleSheet
doc_style: CSSStyleDeclaration
guid: number = 1

Methods

  • add a new rule to the style sheet

    Example

    setRule('xbody', "body { background-color: #ff0000; }" );
    

    Parameters

    • name: string

      internal rule name

    • definition: any

      css definition of the rule

    Returns void

  • return the style variable value

    Example

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

    Parameters

    • name: string

      variable name

    Returns any

Generated using TypeDoc