Class Ext.util.CSS
| Package: | Ext.util |
| Class: | CSS |
| Extends: | Object |
| Defined In: | CSS.js |
Class for manipulating CSS Rules
This class is a singleton and cannot be created directly.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
| |
apply(HTMLElement el, String/Array selector) : Boolean |
CSS |
| Applies a rule to an element without adding the class |
| |
createStyleSheet(String cssText) : StyleSheet |
CSS |
| Very simple dynamic creation of stylesheets from a text blob of rules. |
| |
getRule(String/Array selector, Boolean refreshCache) : CSSRule |
CSS |
| Gets an an individual CSS rule by selector(s) |
| |
getRules(Boolean refreshCache) : Object |
CSS |
| Gets all css rules for the document |
| |
refreshCache() : Object |
CSS |
| Refresh the rule cache if you have dynamically added stylesheets |
| |
updateRule(String/Array selector, String property, String value) : Boolean |
CSS |
| Updates a rule property |
Public Events
This class has no public events.
Method Details
apply
public function apply(HTMLElement el, String/Array selector)
Applies a rule to an element without adding the class
This method is defined by CSS.
createStyleSheet
public function createStyleSheet(String cssText)
Very simple dynamic creation of stylesheets from a text blob of rules.
This method is defined by CSS.
getRule
public function getRule(String/Array selector, Boolean refreshCache)
Gets an an individual CSS rule by selector(s)
This method is defined by CSS.
getRules
public function getRules(Boolean refreshCache)
Gets all css rules for the document
This method is defined by CSS.
refreshCache
public function refreshCache()
Refresh the rule cache if you have dynamically added stylesheets
This method is defined by CSS.
updateRule
public function updateRule(String/Array selector, String property, String value)
This method is defined by CSS.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.