Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleRule

Represents an arbitrary CSS rule.

Hierarchy

  • StyleRule

Index

Constructors

Properties

Constructors

constructor

  • new StyleRule(selector: string, style: string): StyleRule
  • Creates an arbitrary CSS rule using the selector and style rules.

    Parameters

    • selector: string

      CSS selector

    • style: string

      styles to apply

    Returns StyleRule

Properties

selector

selector: string

CSS selector.

style

style: string

Style declaration for the rule.

Generated using TypeDoc