X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.Element.json;h=c16909dabedd2854162ba3b2552502c31dcd6644;hb=d7b225294b7387a24fde8cf337415c8907ee351c;hp=d9a76f88edff5cc3dee9d0732e0817aaca549be9;hpb=d6ed930e56bd5857752de87eab7804e26d2eb766;p=roojs1 diff --git a/docs/symbols/Roo.Element.json b/docs/symbols/Roo.Element.json index d9a76f88ed..c16909dabe 100644 --- a/docs/symbols/Roo.Element.json +++ b/docs/symbols/Roo.Element.json @@ -1,13 +1,19 @@ { "name" : "Roo.Element", "augments" : [], - "childClasses" : [ - "Roo.Layer" - ], + "childClasses" : { + "Roo.Element" : [ + "Roo.Layer" + ] + }, + "tree_children" : [], + "tree_parent" : [], "desc" : "Represents an Element in the DOM.

\nUsage:
\n
\nvar el = Roo.get(\"my-div\");\n\n// or with getEl\nvar el = getEl(\"my-div\");\n\n// or with a DOM element\nvar el = Roo.get(myDivElement);\n
\nUsing Roo.get() or getEl() instead of calling the constructor directly ensures you get the same object\neach call instead of constructing a new one.

\nAnimations
\nMany of the functions for manipulating an element have an optional \"animate\" parameter. The animate parameter\nshould either be a boolean (true) or an object literal with animation options. The animation options are:\n
\nOption    Default   Description\n--------- --------  ---------------------------------------------\nduration  .35       The duration of the animation in seconds\neasing    easeOut   The YUI easing method\ncallback  none      A function to execute when the anim completes\nscope     this      The scope (this) of the callback function\n
\nAlso, the Anim object being used for the animation will be set on your options object as \"anim\", which allows you to stop or\nmanipulate the animation. Here's an example:\n
\nvar el = Roo.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n\n// default animation\nel.setWidth(100, true);\n\n// animation with some options set\nel.setWidth(100, {\n    duration: 1,\n    callback: this.foo,\n    scope: this\n});\n\n// using the \"anim\" property to get the Anim object\nvar opt = {\n    duration: 1,\n    callback: this.foo,\n    scope: this\n};\nel.setWidth(100, opt);\n...\nif(opt.anim.isAnimated()){\n    opt.anim.stop();\n}\n
\n Composite (Collections of) Elements
\nFor working with collections of Elements, see Roo.CompositeElement", "isSingleton" : false, "isStatic" : false, "isBuiltin" : false, + "isAbstract" : false, + "isBuilderTop" : false, "memberOf" : "Element", "example" : "", "deprecated" : "",