X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.Element.json;h=037bf30263cc74f5cfd48d114d90ab0381a8cdd5;hp=c16909dabedd2854162ba3b2552502c31dcd6644;hb=dc0deb4ab24ebb1144a9c7c0cea2e5d6bedb54e1;hpb=a3ba42edf373fc5f2c84815d46e1234a15ab0a12 diff --git a/docs/symbols/Roo.Element.json b/docs/symbols/Roo.Element.json index c16909dabe..037bf30263 100644 --- a/docs/symbols/Roo.Element.json +++ b/docs/symbols/Roo.Element.json @@ -10,7 +10,7 @@ "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, + "isStatic" : true, "isBuiltin" : false, "isAbstract" : false, "isBuilderTop" : false,