docs/src/Roo_bootstrap_Card.js.html
[roojs1] / docs / symbols / Roo.json
1 {
2   "name" : "Roo",
3   "augments" : [
4   ],
5   "desc" : "Roo core utilities and functions.",
6   "isSingleton" : true,
7   "isStatic" : false,
8   "isBuiltin" : false,
9   "memberOf" : "Roo",
10   "example" : "",
11   "deprecated" : "",
12   "since" : "",
13   "see" : "",
14   "params" : [
15   ],
16   "returns" : [
17   ],
18   "config" : [
19     {
20       "name" : "removeMask",
21       "type" : "Boolean",
22       "desc" : "True to create a single-use mask that is automatically destroyed after loading (useful for page loads),\nFalse to persist the mask element reference for multiple uses (e.g., for paged data widgets).  Defaults to false.",
23       "memberOf" : "Roo",
24       "optvals" : [
25       ]
26     },
27     {
28       "name" : "items",
29       "type" : "Array",
30       "desc" : "array of button configs or elements to add (will be converted to a MixedCollection)",
31       "memberOf" : "Roo",
32       "optvals" : [
33       ]
34     },
35     {
36       "name" : "mode",
37       "type" : "String",
38       "desc" : "The shadow display mode.  Supports the following options:<br />\nsides: Shadow displays on both sides and bottom only<br />\nframe: Shadow displays equally on all four sides<br />\ndrop: Traditional bottom-right drop shadow (default)",
39       "memberOf" : "Roo",
40       "optvals" : [
41       ]
42     },
43     {
44       "name" : "tree",
45       "type" : "Roo.tree.TreePanel",
46       "desc" : "The tree TreePanel, with config etc.",
47       "memberOf" : "Roo",
48       "optvals" : [
49       ]
50     }
51   ],
52   "methods" : [
53     {
54       "name" : "each",
55       "desc" : "Iterates an array calling the passed function with each item, stopping if your function returns false. If the\npassed array is not really an array, your function is called once with it.\nThe supplied function is called with (Object item, Number index, Array allItems).",
56       "isStatic" : true,
57       "isConstructor" : false,
58       "isPrivate" : false,
59       "memberOf" : "Roo",
60       "example" : "",
61       "deprecated" : "",
62       "since" : "",
63       "see" : "",
64       "params" : [
65         {
66           "name" : "array",
67           "type" : "Array/NodeList/Mixed",
68           "desc" : "",
69           "isOptional" : false
70         },
71         {
72           "name" : "fn",
73           "type" : "Function",
74           "desc" : "",
75           "isOptional" : false
76         },
77         {
78           "name" : "scope",
79           "type" : "Object",
80           "desc" : "",
81           "isOptional" : false
82         }
83       ],
84       "returns" : [
85       ]
86     },
87     {
88       "name" : "get",
89       "desc" : "Static method to retrieve Element objects. Uses simple caching to consistently return the same object.\nAutomatically fixes if an object was recreated with the same id via AJAX or DOM.\nShorthand of {@link Roo.Element#get}",
90       "isStatic" : true,
91       "isConstructor" : false,
92       "isPrivate" : false,
93       "memberOf" : "Roo",
94       "example" : "",
95       "deprecated" : "",
96       "since" : "",
97       "see" : "",
98       "params" : [
99         {
100           "name" : "el",
101           "type" : "String/HTMLElement/Element",
102           "desc" : "The id of the node, a DOM Node or an existing Element.",
103           "isOptional" : false
104         }
105       ],
106       "returns" : [
107         {
108           "name" : "",
109           "type" : "Element",
110           "desc" : "The Element object"
111         }
112       ]
113     },
114     {
115       "name" : "decode",
116       "desc" : "Shorthand for {@link Roo.util.JSON#decode}",
117       "isStatic" : true,
118       "isConstructor" : false,
119       "isPrivate" : false,
120       "memberOf" : "Roo",
121       "example" : "",
122       "deprecated" : "",
123       "since" : "",
124       "see" : "",
125       "params" : [
126       ],
127       "returns" : [
128       ]
129     },
130     {
131       "name" : "getDom",
132       "desc" : "Return the dom node for the passed string (id), dom node, or Roo.Element",
133       "isStatic" : true,
134       "isConstructor" : false,
135       "isPrivate" : false,
136       "memberOf" : "Roo",
137       "example" : "",
138       "deprecated" : "",
139       "since" : "",
140       "see" : "",
141       "params" : [
142         {
143           "name" : "el",
144           "type" : "String/HTMLElement/Roo.Element",
145           "desc" : "",
146           "isOptional" : false
147         }
148       ],
149       "returns" : [
150         {
151           "name" : "",
152           "type" : "",
153           "desc" : "HTMLElement"
154         }
155       ]
156     },
157     {
158       "name" : "urlEncode",
159       "desc" : "Takes an object and converts it to an encoded URL. e.g. Roo.urlEncode({foo: 1, bar: 2}); would return \"foo=1&bar=2\".  Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value.",
160       "isStatic" : true,
161       "isConstructor" : false,
162       "isPrivate" : false,
163       "memberOf" : "Roo",
164       "example" : "",
165       "deprecated" : "",
166       "since" : "",
167       "see" : "",
168       "params" : [
169         {
170           "name" : "o",
171           "type" : "Object",
172           "desc" : "",
173           "isOptional" : false
174         }
175       ],
176       "returns" : [
177         {
178           "name" : "",
179           "type" : "String",
180           "desc" : ""
181         }
182       ]
183     },
184     {
185       "name" : "addBehaviors",
186       "desc" : "Applies event listeners to elements by selectors when the document is ready.\nThe event name is specified with an @ suffix.\n<pre><code>\nRoo.addBehaviors({\n   // add a listener for click on all anchors in element with id foo\n   '#foo a@click' : function(e, t){\n       // do something\n   },\n\n   // add the same listener to multiple selectors (separated by comma BEFORE the @)\n   '#foo a, #bar span.some-class@mouseover' : function(){\n       // do something\n   }\n});\n</code></pre>",
187       "isStatic" : true,
188       "isConstructor" : false,
189       "isPrivate" : false,
190       "memberOf" : "Roo",
191       "example" : "",
192       "deprecated" : "",
193       "since" : "",
194       "see" : "",
195       "params" : [
196         {
197           "name" : "obj",
198           "type" : "Object",
199           "desc" : "The list of behaviors to apply",
200           "isOptional" : false
201         }
202       ],
203       "returns" : [
204       ]
205     },
206     {
207       "name" : "factory",
208       "desc" : "Creates namespaces to be used for scoping variables and classes so that they are not global.  Usage:\n<pre><code>\nRoo.factory({ xns: Roo.data, xtype : 'Store', .....});\nRoo.factory(conf, Roo.data);\n</code></pre>",
209       "isStatic" : true,
210       "isConstructor" : false,
211       "isPrivate" : false,
212       "memberOf" : "Roo",
213       "example" : "",
214       "deprecated" : "",
215       "since" : "",
216       "see" : "",
217       "params" : [
218         {
219           "name" : "classname",
220           "type" : "String",
221           "desc" : "",
222           "isOptional" : false
223         },
224         {
225           "name" : "namespace",
226           "type" : "String",
227           "desc" : "(optional)",
228           "isOptional" : false
229         }
230       ],
231       "returns" : [
232       ]
233     },
234     {
235       "name" : "apply",
236       "desc" : "Copies all the properties of config to obj.",
237       "isStatic" : true,
238       "isConstructor" : false,
239       "isPrivate" : false,
240       "memberOf" : "Roo",
241       "example" : "",
242       "deprecated" : "",
243       "since" : "",
244       "see" : "",
245       "params" : [
246         {
247           "name" : "obj",
248           "type" : "Object",
249           "desc" : "The receiver of the properties",
250           "isOptional" : false
251         },
252         {
253           "name" : "config",
254           "type" : "Object",
255           "desc" : "The source of the properties",
256           "isOptional" : false
257         },
258         {
259           "name" : "defaults",
260           "type" : "Object",
261           "desc" : "A different object that will also be applied for default values",
262           "isOptional" : false
263         }
264       ],
265       "returns" : [
266         {
267           "name" : "",
268           "type" : "Object",
269           "desc" : "returns obj"
270         }
271       ]
272     },
273     {
274       "name" : "onReady",
275       "desc" : "Fires when the document is ready (before onload and before images are loaded).  Shorthand of {@link Roo.EventManager#onDocumentReady}.",
276       "isStatic" : true,
277       "isConstructor" : false,
278       "isPrivate" : false,
279       "memberOf" : "Roo",
280       "example" : "",
281       "deprecated" : "",
282       "since" : "",
283       "see" : "",
284       "params" : [
285         {
286           "name" : "fn",
287           "type" : "Function",
288           "desc" : "The method the event invokes",
289           "isOptional" : false
290         },
291         {
292           "name" : "scope",
293           "type" : "Object",
294           "desc" : "An  object that becomes the scope of the handler",
295           "isOptional" : false
296         },
297         {
298           "name" : "override",
299           "type" : "boolean",
300           "desc" : "If true, the obj passed in becomes\n                            the execution scope of the listener",
301           "isOptional" : false
302         }
303       ],
304       "returns" : [
305       ]
306     },
307     {
308       "name" : "select",
309       "desc" : "Selects elements based on the passed CSS selector to enable working on them as 1.",
310       "isStatic" : true,
311       "isConstructor" : false,
312       "isPrivate" : false,
313       "memberOf" : "Roo",
314       "example" : "",
315       "deprecated" : "",
316       "since" : "",
317       "see" : "",
318       "params" : [
319         {
320           "name" : "selector",
321           "type" : "String/Array",
322           "desc" : "The CSS selector or an array of elements",
323           "isOptional" : false
324         },
325         {
326           "name" : "unique",
327           "type" : "Boolean",
328           "desc" : "(optional) true to create a unique Roo.Element for each element (defaults to a shared flyweight object)",
329           "isOptional" : false
330         },
331         {
332           "name" : "root",
333           "type" : "HTMLElement/String",
334           "desc" : "(optional) The root element of the query or id of the root",
335           "isOptional" : false
336         }
337       ],
338       "returns" : [
339         {
340           "name" : "",
341           "type" : "CompositeElementLite/CompositeElement",
342           "desc" : ""
343         }
344       ]
345     },
346     {
347       "name" : "applyIf",
348       "desc" : "Copies all the properties of config to obj if they don't already exist.",
349       "isStatic" : true,
350       "isConstructor" : false,
351       "isPrivate" : false,
352       "memberOf" : "Roo",
353       "example" : "",
354       "deprecated" : "",
355       "since" : "",
356       "see" : "",
357       "params" : [
358         {
359           "name" : "obj",
360           "type" : "Object",
361           "desc" : "The receiver of the properties",
362           "isOptional" : false
363         },
364         {
365           "name" : "config",
366           "type" : "Object",
367           "desc" : "The source of the properties",
368           "isOptional" : false
369         }
370       ],
371       "returns" : [
372         {
373           "name" : "",
374           "type" : "Object",
375           "desc" : "returns obj"
376         }
377       ]
378     },
379     {
380       "name" : "getCmp",
381       "desc" : "Shorthand for {@link Roo.ComponentMgr#get}",
382       "isStatic" : true,
383       "isConstructor" : false,
384       "isPrivate" : false,
385       "memberOf" : "Roo",
386       "example" : "",
387       "deprecated" : "",
388       "since" : "",
389       "see" : "",
390       "params" : [
391         {
392           "name" : "id",
393           "type" : "String",
394           "desc" : "",
395           "isOptional" : false
396         }
397       ],
398       "returns" : [
399         {
400           "name" : "",
401           "type" : "",
402           "desc" : "Roo.Component"
403         }
404       ]
405     },
406     {
407       "name" : "id",
408       "desc" : "Generates unique ids. If the element already has an id, it is unchanged",
409       "isStatic" : true,
410       "isConstructor" : false,
411       "isPrivate" : false,
412       "memberOf" : "Roo",
413       "example" : "",
414       "deprecated" : "",
415       "since" : "",
416       "see" : "",
417       "params" : [
418         {
419           "name" : "el",
420           "type" : "String/HTMLElement/Element",
421           "desc" : "(optional) The element to generate an id for",
422           "isOptional" : false
423         },
424         {
425           "name" : "prefix",
426           "type" : "String",
427           "desc" : "(optional) Id prefix (defaults \"Roo-gen\")",
428           "isOptional" : false
429         }
430       ],
431       "returns" : [
432         {
433           "name" : "",
434           "type" : "String",
435           "desc" : "The generated Id."
436         }
437       ]
438     },
439     {
440       "name" : "encodeURIComponent",
441       "desc" : "Safe version of encodeURIComponent",
442       "isStatic" : true,
443       "isConstructor" : false,
444       "isPrivate" : false,
445       "memberOf" : "Roo",
446       "example" : "",
447       "deprecated" : "",
448       "since" : "",
449       "see" : "",
450       "params" : [
451         {
452           "name" : "data",
453           "type" : "String",
454           "desc" : "",
455           "isOptional" : false
456         }
457       ],
458       "returns" : [
459         {
460           "name" : "",
461           "type" : "String",
462           "desc" : ""
463         }
464       ]
465     },
466     {
467       "name" : "encode",
468       "desc" : "Shorthand for {@link Roo.util.JSON#encode}",
469       "isStatic" : true,
470       "isConstructor" : false,
471       "isPrivate" : false,
472       "memberOf" : "Roo",
473       "example" : "",
474       "deprecated" : "",
475       "since" : "",
476       "see" : "",
477       "params" : [
478       ],
479       "returns" : [
480       ]
481     },
482     {
483       "name" : "fly",
484       "desc" : "Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -\nthe dom node can be overwritten by other code.\nShorthand of {@link Roo.Element#fly}",
485       "isStatic" : true,
486       "isConstructor" : false,
487       "isPrivate" : false,
488       "memberOf" : "Roo",
489       "example" : "",
490       "deprecated" : "",
491       "since" : "",
492       "see" : "",
493       "params" : [
494         {
495           "name" : "el",
496           "type" : "String/HTMLElement",
497           "desc" : "The dom node or id",
498           "isOptional" : false
499         },
500         {
501           "name" : "named",
502           "type" : "String",
503           "desc" : "(optional) Allows for creation of named reusable flyweights to\n                                 prevent conflicts (e.g. internally Roo uses \"_internal\")",
504           "isOptional" : false
505         }
506       ],
507       "returns" : [
508         {
509           "name" : "",
510           "type" : "Element",
511           "desc" : "The shared Element object"
512         }
513       ]
514     },
515     {
516       "name" : "isEmpty",
517       "desc" : "Returns true if the passed value is null, undefined or an empty string (optional).",
518       "isStatic" : true,
519       "isConstructor" : false,
520       "isPrivate" : false,
521       "memberOf" : "Roo",
522       "example" : "",
523       "deprecated" : "",
524       "since" : "",
525       "see" : "",
526       "params" : [
527         {
528           "name" : "value",
529           "type" : "Mixed",
530           "desc" : "The value to test",
531           "isOptional" : false
532         },
533         {
534           "name" : "allowBlank",
535           "type" : "Boolean",
536           "desc" : "(optional) Pass true if an empty string is not considered empty",
537           "isOptional" : false
538         }
539       ],
540       "returns" : [
541         {
542           "name" : "",
543           "type" : "Boolean",
544           "desc" : ""
545         }
546       ]
547     },
548     {
549       "name" : "query",
550       "desc" : "Selects an array of DOM nodes by CSS/XPath selector. Shorthand of {@link Roo.DomQuery#select}",
551       "isStatic" : true,
552       "isConstructor" : false,
553       "isPrivate" : false,
554       "memberOf" : "Roo",
555       "example" : "",
556       "deprecated" : "",
557       "since" : "",
558       "see" : "",
559       "params" : [
560         {
561           "name" : "path",
562           "type" : "String",
563           "desc" : "The selector/xpath query",
564           "isOptional" : false
565         },
566         {
567           "name" : "root",
568           "type" : "Node",
569           "desc" : "(optional) The start of the query (defaults to document).",
570           "isOptional" : false
571         }
572       ],
573       "returns" : [
574         {
575           "name" : "",
576           "type" : "Array",
577           "desc" : ""
578         }
579       ]
580     },
581     {
582       "name" : "urlDecode",
583       "desc" : "Takes an encoded URL and and converts it to an object. e.g. Roo.urlDecode(\"foo=1&bar=2\"); would return {foo: 1, bar: 2} or Roo.urlDecode(\"foo=1&bar=2&bar=3&bar=4\", true); would return {foo: 1, bar: [2, 3, 4]}.",
584       "isStatic" : true,
585       "isConstructor" : false,
586       "isPrivate" : false,
587       "memberOf" : "Roo",
588       "example" : "",
589       "deprecated" : "",
590       "since" : "",
591       "see" : "",
592       "params" : [
593         {
594           "name" : "string",
595           "type" : "String",
596           "desc" : "",
597           "isOptional" : false
598         },
599         {
600           "name" : "overwrite",
601           "type" : "Boolean",
602           "desc" : "(optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false).",
603           "isOptional" : false
604         }
605       ],
606       "returns" : [
607         {
608           "name" : "",
609           "type" : "Object",
610           "desc" : "A literal with members"
611         }
612       ]
613     },
614     {
615       "name" : "escapeRe",
616       "desc" : "Escapes the passed string for use in a regular expression",
617       "isStatic" : true,
618       "isConstructor" : false,
619       "isPrivate" : false,
620       "memberOf" : "Roo",
621       "example" : "",
622       "deprecated" : "",
623       "since" : "",
624       "see" : "",
625       "params" : [
626         {
627           "name" : "str",
628           "type" : "String",
629           "desc" : "",
630           "isOptional" : false
631         }
632       ],
633       "returns" : [
634         {
635           "name" : "",
636           "type" : "String",
637           "desc" : ""
638         }
639       ]
640     },
641     {
642       "name" : "extend",
643       "desc" : "Extends one class with another class and optionally overrides members with the passed literal. This class\nalso adds the function \"override()\" to the class that can be used to override\nmembers on an instance.",
644       "isStatic" : true,
645       "isConstructor" : false,
646       "isPrivate" : false,
647       "memberOf" : "Roo",
648       "example" : "",
649       "deprecated" : "",
650       "since" : "",
651       "see" : "",
652       "params" : [
653         {
654           "name" : "subclass",
655           "type" : "Object",
656           "desc" : "The class inheriting the functionality",
657           "isOptional" : false
658         },
659         {
660           "name" : "superclass",
661           "type" : "Object",
662           "desc" : "The class being extended",
663           "isOptional" : false
664         },
665         {
666           "name" : "overrides",
667           "type" : "Object",
668           "desc" : "(optional) A literal with members",
669           "isOptional" : false
670         }
671       ],
672       "returns" : [
673       ]
674     },
675     {
676       "name" : "namespace",
677       "desc" : "Creates namespaces to be used for scoping variables and classes so that they are not global.  Usage:\n<pre><code>\nRoo.namespace('Company', 'Company.data');\nCompany.Widget = function() { ... }\nCompany.data.CustomStore = function(config) { ... }\n</code></pre>",
678       "isStatic" : true,
679       "isConstructor" : false,
680       "isPrivate" : false,
681       "memberOf" : "Roo",
682       "example" : "",
683       "deprecated" : "",
684       "since" : "",
685       "see" : "",
686       "params" : [
687         {
688           "name" : "namespace1",
689           "type" : "String",
690           "desc" : "",
691           "isOptional" : false
692         },
693         {
694           "name" : "namespace2",
695           "type" : "String",
696           "desc" : "",
697           "isOptional" : false
698         },
699         {
700           "name" : "etc",
701           "type" : "String",
702           "desc" : "",
703           "isOptional" : false
704         }
705       ],
706       "returns" : [
707       ]
708     },
709     {
710       "name" : "override",
711       "desc" : "Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.\nUsage:<pre><code>\nRoo.override(MyClass, {\n    newMethod1: function(){\n        // etc.\n    },\n    newMethod2: function(foo){\n        // etc.\n    }\n});\n </code></pre>",
712       "isStatic" : true,
713       "isConstructor" : false,
714       "isPrivate" : false,
715       "memberOf" : "Roo",
716       "example" : "",
717       "deprecated" : "",
718       "since" : "",
719       "see" : "",
720       "params" : [
721         {
722           "name" : "origclass",
723           "type" : "Object",
724           "desc" : "The class to override",
725           "isOptional" : false
726         },
727         {
728           "name" : "overrides",
729           "type" : "Object",
730           "desc" : "The list of functions to add to origClass.  This should be specified as an object literal\ncontaining one or more methods.",
731           "isOptional" : false
732         }
733       ],
734       "returns" : [
735       ]
736     },
737     {
738       "name" : "selectNode",
739       "desc" : "Selects a single element as a Roo Element\nThis is about as close as you can get to jQuery's $('do crazy stuff')",
740       "isStatic" : true,
741       "isConstructor" : false,
742       "isPrivate" : false,
743       "memberOf" : "Roo",
744       "example" : "",
745       "deprecated" : "",
746       "since" : "",
747       "see" : "",
748       "params" : [
749         {
750           "name" : "selector",
751           "type" : "String",
752           "desc" : "The selector/xpath query",
753           "isOptional" : false
754         },
755         {
756           "name" : "root",
757           "type" : "Node",
758           "desc" : "(optional) The start of the query (defaults to document).",
759           "isOptional" : false
760         }
761       ],
762       "returns" : [
763         {
764           "name" : "",
765           "type" : "Roo.Element",
766           "desc" : ""
767         }
768       ]
769     },
770     {
771       "name" : "type",
772       "desc" : "Returns the type of object that is passed in. If the object passed in is null or undefined it\nreturn false otherwise it returns one of the following values:<ul>\n<li><b>string</b>: If the object passed is a string</li>\n<li><b>number</b>: If the object passed is a number</li>\n<li><b>boolean</b>: If the object passed is a boolean value</li>\n<li><b>function</b>: If the object passed is a function reference</li>\n<li><b>object</b>: If the object passed is an object</li>\n<li><b>array</b>: If the object passed is an array</li>\n<li><b>regexp</b>: If the object passed is a regular expression</li>\n<li><b>element</b>: If the object passed is a DOM Element</li>\n<li><b>nodelist</b>: If the object passed is a DOM NodeList</li>\n<li><b>textnode</b>: If the object passed is a DOM text node and contains something other than whitespace</li>\n<li><b>whitespace</b>: If the object passed is a DOM text node and contains only whitespace</li>",
773       "isStatic" : true,
774       "isConstructor" : false,
775       "isPrivate" : false,
776       "memberOf" : "Roo",
777       "example" : "",
778       "deprecated" : "",
779       "since" : "",
780       "see" : "",
781       "params" : [
782         {
783           "name" : "object",
784           "type" : "Mixed",
785           "desc" : "",
786           "isOptional" : false
787         }
788       ],
789       "returns" : [
790         {
791           "name" : "",
792           "type" : "String",
793           "desc" : ""
794         }
795       ]
796     }
797   ],
798   "events" : [
799   ]
800 }