Class Ext.util.CSS
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 ) : 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.
|
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)
|
CSS |
|
getRules( Boolean refreshCache ) : Object
Gets all css rules for the document
Gets all css rules for the document
|
CSS |
|
refreshCache() : Object
Refresh the rule cache if you have dynamically added stylesheets
Refresh the rule cache if you have dynamically added stylesheets
|
CSS |
|
removeStyleSheet( String id ) : void
Removes 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 ) : void
Dynamically 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.