Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.util.CSS.js
1 Ext.data.JsonP.Ext_util_CSS({
2   "tagname": "class",
3   "name": "Ext.util.CSS",
4   "doc": "<p>Utility class for manipulating CSS rules</p>\n",
5   "extends": null,
6   "mixins": [
7
8   ],
9   "alternateClassNames": [
10
11   ],
12   "xtype": null,
13   "author": null,
14   "docauthor": null,
15   "singleton": true,
16   "private": false,
17   "cfg": [
18
19   ],
20   "method": [
21     {
22       "tagname": "method",
23       "name": "createStyleSheet",
24       "member": "Ext.util.CSS",
25       "doc": "<p>Creates a stylesheet from a text blob of rules.\nThese rules will be wrapped in a STYLE tag and appended to the HEAD of the document.</p>\n",
26       "params": [
27         {
28           "type": "String",
29           "name": "cssText",
30           "doc": "<p>The text containing the css rules</p>\n",
31           "optional": false
32         },
33         {
34           "type": "String",
35           "name": "id",
36           "doc": "<p>An id to add to the stylesheet for later removal</p>\n",
37           "optional": false
38         }
39       ],
40       "return": {
41         "type": "StyleSheet",
42         "doc": "\n"
43       },
44       "private": false,
45       "static": false,
46       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
47       "linenr": 22,
48       "html_filename": "CSS.html",
49       "href": "CSS.html#Ext-util-CSS-method-createStyleSheet",
50       "shortDoc": "Creates a stylesheet from a text blob of rules.\nThese rules will be wrapped in a STYLE tag and appended to the HEAD o..."
51     },
52     {
53       "tagname": "method",
54       "name": "getRule",
55       "member": "Ext.util.CSS",
56       "doc": "<p>Gets an an individual CSS rule by selector(s)</p>\n",
57       "params": [
58         {
59           "type": "String/Array",
60           "name": "selector",
61           "doc": "<p>The CSS selector or an array of selectors to try. The first selector that is found is returned.</p>\n",
62           "optional": false
63         },
64         {
65           "type": "Boolean",
66           "name": "refreshCache",
67           "doc": "<p>true to refresh the internal cache if you have recently updated any rules or added styles dynamically</p>\n",
68           "optional": false
69         }
70       ],
71       "return": {
72         "type": "CSSRule",
73         "doc": "<p>The CSS rule or null if one is not found</p>\n"
74       },
75       "private": false,
76       "static": false,
77       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
78       "linenr": 141,
79       "html_filename": "CSS.html",
80       "href": "CSS.html#Ext-util-CSS-method-getRule",
81       "shortDoc": "<p>Gets an an individual CSS rule by selector(s)</p>\n"
82     },
83     {
84       "tagname": "method",
85       "name": "getRules",
86       "member": "Ext.util.CSS",
87       "doc": "<p>Gets all css rules for the document</p>\n",
88       "params": [
89         {
90           "type": "Boolean",
91           "name": "refreshCache",
92           "doc": "<p>true to refresh the internal cache</p>\n",
93           "optional": false
94         }
95       ],
96       "return": {
97         "type": "Object",
98         "doc": "<p>An object (hash) of rules indexed by selector</p>\n"
99       },
100       "private": false,
101       "static": false,
102       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
103       "linenr": 118,
104       "html_filename": "CSS.html",
105       "href": "CSS.html#Ext-util-CSS-method-getRules",
106       "shortDoc": "<p>Gets all css rules for the document</p>\n"
107     },
108     {
109       "tagname": "method",
110       "name": "refreshCache",
111       "member": "Ext.util.CSS",
112       "doc": "<p>Refresh the rule cache if you have dynamically added stylesheets</p>\n",
113       "params": [
114
115       ],
116       "return": {
117         "type": "Object",
118         "doc": "<p>An object (hash) of rules indexed by selector</p>\n"
119       },
120       "private": false,
121       "static": false,
122       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
123       "linenr": 83,
124       "html_filename": "CSS.html",
125       "href": "CSS.html#Ext-util-CSS-method-refreshCache",
126       "shortDoc": "<p>Refresh the rule cache if you have dynamically added stylesheets</p>\n"
127     },
128     {
129       "tagname": "method",
130       "name": "removeStyleSheet",
131       "member": "Ext.util.CSS",
132       "doc": "<p>Removes a style or link tag by id</p>\n",
133       "params": [
134         {
135           "type": "String",
136           "name": "id",
137           "doc": "<p>The id of the tag</p>\n",
138           "optional": false
139         }
140       ],
141       "return": {
142         "type": "void",
143         "doc": "\n"
144       },
145       "private": false,
146       "static": false,
147       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
148       "linenr": 56,
149       "html_filename": "CSS.html",
150       "href": "CSS.html#Ext-util-CSS-method-removeStyleSheet",
151       "shortDoc": "<p>Removes a style or link tag by id</p>\n"
152     },
153     {
154       "tagname": "method",
155       "name": "swapStyleSheet",
156       "member": "Ext.util.CSS",
157       "doc": "<p>Dynamically swaps an existing stylesheet reference for a new one</p>\n",
158       "params": [
159         {
160           "type": "String",
161           "name": "id",
162           "doc": "<p>The id of an existing link tag to remove</p>\n",
163           "optional": false
164         },
165         {
166           "type": "String",
167           "name": "url",
168           "doc": "<p>The href of the new stylesheet to include</p>\n",
169           "optional": false
170         }
171       ],
172       "return": {
173         "type": "void",
174         "doc": "\n"
175       },
176       "private": false,
177       "static": false,
178       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
179       "linenr": 67,
180       "html_filename": "CSS.html",
181       "href": "CSS.html#Ext-util-CSS-method-swapStyleSheet",
182       "shortDoc": "<p>Dynamically swaps an existing stylesheet reference for a new one</p>\n"
183     },
184     {
185       "tagname": "method",
186       "name": "updateRule",
187       "member": "Ext.util.CSS",
188       "doc": "<p>Updates a rule property</p>\n",
189       "params": [
190         {
191           "type": "String/Array",
192           "name": "selector",
193           "doc": "<p>If it's an array it tries each selector until it finds one. Stops immediately once one is found.</p>\n",
194           "optional": false
195         },
196         {
197           "type": "String",
198           "name": "property",
199           "doc": "<p>The css property</p>\n",
200           "optional": false
201         },
202         {
203           "type": "String",
204           "name": "value",
205           "doc": "<p>The new value for the property</p>\n",
206           "optional": false
207         }
208       ],
209       "return": {
210         "type": "Boolean",
211         "doc": "<p>true If a rule was found and updated</p>\n"
212       },
213       "private": false,
214       "static": false,
215       "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
216       "linenr": 160,
217       "html_filename": "CSS.html",
218       "href": "CSS.html#Ext-util-CSS-method-updateRule",
219       "shortDoc": "<p>Updates a rule property</p>\n"
220     }
221   ],
222   "property": [
223
224   ],
225   "event": [
226
227   ],
228   "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/CSS.js",
229   "linenr": 1,
230   "html_filename": "CSS.html",
231   "href": "CSS.html#Ext-util-CSS",
232   "cssVar": [
233
234   ],
235   "cssMixin": [
236
237   ],
238   "component": false,
239   "superclasses": [
240
241   ],
242   "subclasses": [
243
244   ],
245   "mixedInto": [
246
247   ],
248   "allMixins": [
249
250   ]
251 });