Package: | Ext.util |
Defined In: | CSS.js |
Class: | CSS |
Extends: | Object |
Method | Defined By | |
---|---|---|
createStyleSheet( String cssText, String id ) : StyleSheet Creates a stylesheet from a text blob of rules.
These rules will be wrapped in a STYLE tag and appended to the HEAD o... Creates a stylesheet from a text blob of rules.
These rules will be wrapped in a STYLE tag and appended to the HEAD of the document. Parameters:
| CSS | |
getRule( String/Array selector, Boolean refreshCache ) : CSSRule Gets an an individual CSS rule by selector(s) Gets an an individual CSS rule by selector(s) Parameters:
| CSS | |
getRules( Boolean refreshCache ) : Object Gets all css rules for the document Gets all css rules for the document Parameters:
| CSS | |
refreshCache() : Object Refresh the rule cache if you have dynamically added stylesheets Refresh the rule cache if you have dynamically added stylesheets Parameters:
| CSS | |
removeStyleSheet( String id ) : void Removes a style or link tag by id Removes a style or link tag by id Parameters:
| CSS | |
swapStyleSheet( String id, String url ) : void Dynamically swaps an existing stylesheet reference for a new one Dynamically swaps an existing stylesheet reference for a new one Parameters:
| CSS | |
updateRule( String/Array selector, String property, String value ) : Boolean Updates a rule property Updates a rule property Parameters:
| CSS |