interface CSSRuleManager {
    get cssText(): string;
    get name(): string;
    get selector(): string;
    get(): { [key: string]: string };
    getProperty(key: string): string;
    isConnected(): boolean;
    removeProperties(keys: Iterable<string>): void;
    removeProperty(key: string): string;
    setProperties(rules: { [key: string]: string }, overwrite?: boolean): void;
    setProperty(key: string, value: string, overwrite?: boolean): void;
}

Accessors

  • get cssText(): string
  • Returns string

    Provides an accessor to get the cssText for the style sheet.

  • get name(): string
  • Returns string

    Name of this CSSRuleManager indexed by associated TJSStyleManager.

  • get selector(): string
  • Returns string

    The associated selector for this CSS rule.

Methods

  • Retrieves an object with the current CSS rule data.

    Returns { [key: string]: string }

    Current CSS rule data.

  • Gets a particular CSS variable.

    Parameters

    • key: string

      CSS variable property key.

    Returns string

    Returns CSS variable value.

  • Determines if this CSSRuleManager is still connected / available.

    Returns boolean

    Is CSSRuleManager connected.

  • Removes the property keys specified. If keys is an iterable list then all property keys in the list are removed.

    Parameters

    • keys: Iterable<string>

      The property keys to remove.

    Returns void

  • Removes a particular CSS variable.

    Parameters

    • key: string

      CSS variable property key.

    Returns string

    CSS variable value when removed.

  • Set rules by property / value; useful for CSS variables.

    Parameters

    • rules: { [key: string]: string }

      An object with property / value string pairs to load.

    • Optionaloverwrite: boolean

      When true overwrites any existing values.

    Returns void

  • Sets a particular property.

    Parameters

    • key: string

      CSS variable property key.

    • value: string

      CSS variable value.

    • Optionaloverwrite: boolean

      Overwrite any existing value.

    Returns void