Package: | Ext.util |
Defined In: | CSS.js |
Class: | CSS |
Extends: | Object |
Utility class for manipulating CSS rules
This class is a singleton and cannot be created directly.
Public Properties
This class has no public properties.
Public Methods
|
| createStyleSheet( String cssText , String id )
+ :
+ StyleSheetCreates a stylesheet from a text blob of rules.
These rules will be wrapped in a STYLE tag and appended to the HEAD ... 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. | CSS |
| getRule( String/Array selector , Boolean refreshCache )
- :
- CSSRuleGets an an individual CSS rule by selector(s) Gets an an individual CSS rule by selector(s) | CSS |
| getRules( Boolean refreshCache )
- :
- ObjectGets all css rules for the document Gets all css rules for the document | CSS |
| refreshCache()
- :
- ObjectRefresh the rule cache if you have dynamically added stylesheets Refresh the rule cache if you have dynamically added stylesheets | CSS |
| removeStyleSheet( String id )
- :
- voidRemoves a style or link tag by id Removes a style or link tag by id Parameters:id : StringThe id of the tag Returns: | CSS |
| swapStyleSheet( String id , String url )
- :
- voidDynamically swaps an existing stylesheet reference for a new one Dynamically swaps an existing stylesheet reference for a new one | CSS |
| updateRule( String/Array selector , String property , String value )
- :
+These rules will be wrapped in a STYLE tag and appended to the HEAD of the document. | CSS |
| getRule( String/Array selector , Boolean refreshCache )
+ :
+ CSSRuleGets an an individual CSS rule by selector(s) Gets an an individual CSS rule by selector(s) | CSS |
| getRules( Boolean refreshCache )
+ :
+ ObjectGets all css rules for the document Gets all css rules for the document | CSS |
| refreshCache()
+ :
+ ObjectRefresh the rule cache if you have dynamically added stylesheets Refresh the rule cache if you have dynamically added stylesheets | CSS |
| removeStyleSheet( String id )
+ :
+ voidRemoves a style or link tag by id Removes a style or link tag by id Parameters:id : StringThe id of the tag Returns: | CSS |
| swapStyleSheet( String id , String url )
+ :
+ voidDynamically swaps an existing stylesheet reference for a new one Dynamically swaps an existing stylesheet reference for a new one | CSS |
| updateRule( String/Array selector , String property , String value )
+ :
Boolean | CSS |
Public Events
This class has no public events.