Package: | Ext.util |
Defined In: | CSS.js |
Class: | CSS |
Extends: | Object |
Method | Defined By | |
---|---|---|
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. Parameters:
| 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) Parameters:
| CSS | |
getRules( Boolean refreshCache )
:
ObjectGets 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 )
:
voidRemoves a style or link tag by id Removes a style or link tag by id Parameters:
| 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 Parameters:
| CSS | |
updateRule( String/Array selector , String property , String value )
:
BooleanUpdates a rule property Updates a rule property Parameters:
| CSS |