Method Summary |
|
native public static void | createStyleSheet(String cssText, String id) Very simple dynamic creation of stylesheets from a text blob of rules. |
native public static CSSRule | getRule(String selector, boolean refreshCache) Gets an an individual CSS rule by selector(s).
Parameters: selector - the CSS selector or an array of selectors to try. |
native public static void | refreshCache() Refresh the rule cache if you have dynamically added stylesheets. |
native public static void | removeStyleSheet(String id) |
native public static void | swapStyleSheet(String id, String url) Dynamically swaps an existing stylesheet reference for a new one. |
native public static void | updateRule(String selector, String property, String value) Updates a rule property.
Parameters: selector - the seelctor. |