X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/output/Ext.XTemplate.js diff --git a/docs/output/Ext.XTemplate.js b/docs/output/Ext.XTemplate.js new file mode 100644 index 00000000..a06847a2 --- /dev/null +++ b/docs/output/Ext.XTemplate.js @@ -0,0 +1,392 @@ +Ext.data.JsonP.Ext_XTemplate({ + "tagname": "class", + "name": "Ext.XTemplate", + "doc": "

A template class that supports advanced functionality like:

\n\n\n

XTemplate provides the templating mechanism built into:

\n\n\n

The Ext.Template describes\nthe acceptable parameters to pass to the constructor. The following\nexamples demonstrate all of the supported features.

\n\n
\n\n", + "extends": "Ext.Template", + "mixins": [ + + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": null, + "docauthor": null, + "singleton": false, + "private": false, + "cfg": [ + { + "tagname": "cfg", + "name": "codeRe", + "member": "Ext.XTemplate", + "type": "RegExp", + "doc": "

The regular expression used to match code variables (default: matches {[expression]}).

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 359, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate-cfg-codeRe" + }, + { + "tagname": "cfg", + "name": "disableFormats", + "member": "Ext.Template", + "type": "Boolean", + "doc": "

true to disable format functions in the template. If the template doesn't contain format functions, setting\ndisableFormats to true will reduce apply time (defaults to false)

\n", + "private": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 111, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-cfg-disableFormats", + "shortDoc": "true to disable format functions in the template. If the template doesn't contain format functions, setting\ndisableFo..." + } + ], + "method": [ + { + "tagname": "method", + "name": "append", + "member": "Ext.Template", + "doc": "

Applies the supplied values to the template and appends\nthe new node(s) to the specified el.

\n\n

For example usage see the constructor.

\n\n", + "params": [ + { + "type": "Mixed", + "name": "el", + "doc": "

The context element

\n", + "optional": false + }, + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if the params are numeric (i.e. {0})\nor an object (i.e. {foo: 'bar'}).

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "returnElement", + "doc": "

(optional) true to return an Ext.core.Element (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "HTMLElement/Ext.core.Element", + "doc": "

The new node or Element

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 237, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-append", + "shortDoc": "Applies the supplied values to the template and appends\nthe new node(s) to the specified el.\n\nFor example usage see t..." + }, + { + "tagname": "method", + "name": "apply", + "member": "Ext.XTemplate", + "doc": "

Alias for applyTemplate\nReturns an HTML fragment of this template with the specified values applied.

\n", + "params": [ + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + } + ], + "return": { + "type": "String", + "doc": "

The HTML fragment

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 488, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate-method-apply", + "shortDoc": "

Alias for applyTemplate\nReturns an HTML fragment of this template with the specified values applied.

\n" + }, + { + "tagname": "method", + "name": "applyTemplate", + "member": "Ext.XTemplate", + "doc": "

Returns an HTML fragment of this template with the specified values applied.

\n", + "params": [ + { + "type": "Object", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + } + ], + "return": { + "type": "String", + "doc": "

The HTML fragment

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 471, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate-method-applyTemplate", + "shortDoc": "

Returns an HTML fragment of this template with the specified values applied.

\n" + }, + { + "tagname": "method", + "name": "compile", + "member": "Ext.XTemplate", + "doc": "

Compile the template to a function for optimized performance. Recommended if the template will be used frequently.

\n", + "params": [ + + ], + "return": { + "type": "Function", + "doc": "

The compiled function

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 480, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate-method-compile", + "shortDoc": "

Compile the template to a function for optimized performance. Recommended if the template will be used frequently.

\n" + }, + { + "tagname": "method", + "name": "from", + "member": "Ext.XTemplate", + "doc": "

Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.

\n", + "params": [ + { + "type": "String/HTMLElement", + "name": "el", + "doc": "

A DOM element or its id

\n", + "optional": false + }, + { + "type": "Object", + "name": "config", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Ext.Template", + "doc": "

The created template

\n" + }, + "private": false, + "static": true, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 268, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate-method-from", + "shortDoc": "

Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.

\n" + }, + { + "tagname": "method", + "name": "insertAfter", + "member": "Ext.Template", + "doc": "

Applies the supplied values to the template and inserts the new node(s) after el.

\n", + "params": [ + { + "type": "Mixed", + "name": "el", + "doc": "

The context element

\n", + "optional": false + }, + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "returnElement", + "doc": "

(optional) true to return a Ext.core.Element (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "HTMLElement/Ext.core.Element", + "doc": "

The new node or Element

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 226, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-insertAfter", + "shortDoc": "

Applies the supplied values to the template and inserts the new node(s) after el.

\n" + }, + { + "tagname": "method", + "name": "insertBefore", + "member": "Ext.Template", + "doc": "

Applies the supplied values to the template and inserts the new node(s) before el.

\n", + "params": [ + { + "type": "Mixed", + "name": "el", + "doc": "

The context element

\n", + "optional": false + }, + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "returnElement", + "doc": "

(optional) true to return a Ext.core.Element (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "HTMLElement/Ext.core.Element", + "doc": "

The new node or Element

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 215, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-insertBefore", + "shortDoc": "

Applies the supplied values to the template and inserts the new node(s) before el.

\n" + }, + { + "tagname": "method", + "name": "insertFirst", + "member": "Ext.Template", + "doc": "

Applies the supplied values to the template and inserts the new node(s) as the first child of el.

\n", + "params": [ + { + "type": "Mixed", + "name": "el", + "doc": "

The context element

\n", + "optional": false + }, + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "returnElement", + "doc": "

(optional) true to return a Ext.core.Element (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "HTMLElement/Ext.core.Element", + "doc": "

The new node or Element

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 204, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-insertFirst", + "shortDoc": "

Applies the supplied values to the template and inserts the new node(s) as the first child of el.

\n" + }, + { + "tagname": "method", + "name": "overwrite", + "member": "Ext.Template", + "doc": "

Applies the supplied values to the template and overwrites the content of el with the new node(s).

\n", + "params": [ + { + "type": "Mixed", + "name": "el", + "doc": "

The context element

\n", + "optional": false + }, + { + "type": "Object/Array", + "name": "values", + "doc": "

The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})

\n", + "optional": false + }, + { + "type": "Boolean", + "name": "returnElement", + "doc": "

(optional) true to return a Ext.core.Element (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "HTMLElement/Ext.core.Element", + "doc": "

The new node or Element

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 258, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-overwrite", + "shortDoc": "

Applies the supplied values to the template and overwrites the content of el with the new node(s).

\n" + }, + { + "tagname": "method", + "name": "set", + "member": "Ext.Template", + "doc": "

Sets the HTML used as the template and optionally compiles it.

\n", + "params": [ + { + "type": "String", + "name": "html", + "doc": "\n", + "optional": false + }, + { + "type": "Boolean", + "name": "compile", + "doc": "

(optional) True to compile the template (defaults to undefined)

\n", + "optional": true + } + ], + "return": { + "type": "Ext.Template", + "doc": "

this

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js", + "linenr": 154, + "html_filename": "Template2.html", + "href": "Template2.html#Ext-Template-method-set", + "shortDoc": "

Sets the HTML used as the template and optionally compiles it.

\n" + } + ], + "property": [ + + ], + "event": [ + + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/src/XTemplate.js", + "linenr": 1, + "html_filename": "XTemplate.html", + "href": "XTemplate.html#Ext-XTemplate", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + "Ext.Template" + ], + "subclasses": [ + + ], + "mixedInto": [ + + ], + "allMixins": [ + + ] +}); \ No newline at end of file