Interface RuleManager
get cssText(): string;
set cssText(cssText: string): void;
get isConnected(): boolean;
get name(): string;
get selector(): string;
"[iterator]"(): Iterator<[string, string], any, any>;
entries(): Iterator<[string, string]>;
get(options?: { camelCase?: boolean }): StyleProps;
getProperty(key: string): string;
hasProperty(key: string): boolean;
keys(): Iterator<string>;
removeProperties(keys: Iterable<string>): void;
removeProperty(key: string): string;
setProperties(styles: StyleProps, options?: { override?: boolean }): void;
setProperty(
key: string,
value: string,
options?: { override?: boolean },
): void;
}
                 
                    
                  Hierarchy
              
              - Iterable<[string, string]>- RuleManager
 
Index
Accessors
cssText 
- get cssText(): stringReturns stringProvides an accessor to get the cssTextfor the style rule or undefined if not connected.
- set cssText(cssText: string): voidParameters- cssText: stringProvides an accessor to set the cssTextfor the style rule.
 Returns void
- cssText: string
isConnected 
- get isConnected(): booleanDetermines if this RuleManager is still connected / available. Returns booleanIs RuleManager connected. 
name
- get name(): stringReturns stringName of this RuleManager indexed by associated StyleManager. 
selector
- get selector(): stringReturns stringThe associated selector for this CSS rule. 
Methods
[iterator]
- Returns Iterator<[string, string], any, any>
entries
- Returns Iterator<[string, string]>- Iterator of CSS property entries in hyphen-case. 
get
- Retrieves an object with the current CSS rule data. - Parameters- Optionaloptions: { camelCase?: boolean }- Optional settings. - OptionalcamelCase?: boolean- Whether to convert property names to camel case. 
 
 - Returns StyleProps- Current CSS style data or undefined if not connected. 
getProperty 
- Gets a particular CSS property value. - Parameters- key: stringCSS property key; must be in hyphen-case (IE background-color).
 - Returns string- Returns CSS property value or undefined if non-existent. 
- key: string
hasProperty 
- Returns whether this CSS rule manager has a given property key. - Parameters- key: stringCSS property key; must be in hyphen-case (IE background-color).
 - Returns boolean- Property key exists / is defined. 
- key: string
keys
- Returns Iterator<string>- Iterator of CSS property keys in hyphen-case. 
removeProperties 
- Removes the property keys specified. If - keysis an iterable list then all property keys in the list are removed. The keys must be in hyphen-case (IE- background-color).- Parameters- keys: Iterable<string>The property keys to remove. 
 - Returns void
- keys: Iterable<string>
removeProperty 
- Removes a particular CSS property. - Parameters- key: stringCSS property key; must be in hyphen-case (IE background-color).
 - Returns string- CSS value when removed or undefined if non-existent. 
- key: string
setProperties 
- Set CSS properties in bulk by property / value. Must use hyphen-case. - Parameters- styles: StylePropsCSS styles object. 
- Optionaloptions: { override?: boolean }- Options. 
 - Returns void
- styles: StyleProps
setProperty 
- Sets a particular property. - Parameters- key: stringCSS property key; must be in hyphen-case (IE background-color).
- value: stringCSS property value. 
- Optionaloptions: { override?: boolean }- Options. - Optionaloverride?: boolean- When true overrides any existing value; default: - true.
 
 - Returns void
- key: string
Provides the ability to
getandsetbulk or single CSS properties to a specific CSSStyleRule.