class type t =Inheritsobject
..end
method isTemplate : bool Js.t Js.prop
true
in this class to identify an object as an instantiated Template, or subclass thereof.
Defaults to: true
method append : 'a 'b 'c. 'a Js.t -> 'b Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth
Applies the supplied values
to the template and appends the new node(s) to the specified el
.
For example usage see Ext.Template class docs.
Parameters:
_ Js.t
The context element
_ Js.t
The template values. See applyTemplate for details.
bool Js.t
(optional)
true to return an Ext.Element.
Returns:
_ Js.t
The new node or Element
method apply : 'd. 'd Js.t -> Js.js_string Js.t Js.meth
Returns an HTML fragment of this template with the specified values applied.
Parameters:
_ Js.t
The template values. Can be an array if your params are numeric:
var tpl = new Ext.Template('Name: {0}, Age: {1}');
tpl.apply(['John', 25]);
or an object:
var tpl = new Ext.Template('Name: {name}, Age: {age}');
tpl.apply({name: 'John', age: 25});
Returns:
Js.js_string Js.t
The HTML fragment
method applyOut : 'e 'f 'g. 'e Js.t -> 'f Js.js_array Js.t -> 'g Js.js_array Js.t Js.meth
Appends the result of this template to the provided output array.
Parameters:
_ Js.t
The template values. See apply.
_ Js.js_array Js.t
The array to which output is pushed.
Returns:
_ Js.js_array Js.t
The given out array.
method applyTemplate : 'h. 'h Js.t -> Js.js_string Js.t Js.meth
Alias for apply.
Returns an HTML fragment of this template with the specified values applied.
Parameters:
_ Js.t
The template values. Can be an array if your params are numeric:
var tpl = new Ext.Template('Name: {0}, Age: {1}');
tpl.apply(['John', 25]);
or an object:
var tpl = new Ext.Template('Name: {name}, Age: {age}');
tpl.apply({name: 'John', age: 25});
Returns:
Js.js_string Js.t
The HTML fragment
method compile : (< append : 'a 'b 'c.
'a Js.t -> 'b Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
apply : 'd. 'd Js.t -> Js.js_string Js.t Js.meth;
applyOut : 'e 'f 'g.
'e Js.t -> 'f Js.js_array Js.t -> 'g Js.js_array Js.t Js.meth;
applyTemplate : 'h. 'h Js.t -> Js.js_string Js.t Js.meth;
callParent : 'k 'l. 'k Js.t -> 'l Js.t Js.meth;
callSuper : 'm 'n. 'm Js.t -> 'n Js.t Js.meth; compile : 'i;
getInitialConfig : 'o. Js.js_string Js.t Js.optdef -> 'o Js.t Js.meth;
initConfig : 'p. 'p Js.t -> 'j Js.t Js.meth;
insertAfter : 'q 'r 's.
'q Js.t ->
'r Js.t -> bool Js.t Js.optdef -> 's Js.t Js.meth;
insertBefore : 't 'u 'v.
't Js.t ->
'u Js.t -> bool Js.t Js.optdef -> 'v Js.t Js.meth;
insertFirst : 'w 'x 'y.
'w Js.t ->
'x Js.t -> bool Js.t Js.optdef -> 'y Js.t Js.meth;
isTemplate : bool Js.t Js.prop;
overwrite : 'z 'a1 'b1.
'z Js.t ->
'a1 Js.t -> bool Js.t Js.optdef -> 'b1 Js.t Js.meth;
self : Ext_Class.t Js.t Js.prop;
set : Js.js_string Js.t -> bool Js.t Js.optdef -> 'j Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth; .. >
as 'j)
Js.t Js.meth as 'i
Compiles the template into an internal function, eliminating the RegEx overhead.
Returns:
Ext_Template.t Js.t
this
method insertAfter : 'q 'r 's. 'q Js.t -> 'r Js.t -> bool Js.t Js.optdef -> 's Js.t Js.meth
Applies the supplied values to the template and inserts the new node(s) after el.
Parameters:
_ Js.t
The context element
_ Js.t
The template values. See applyTemplate for details.
bool Js.t
(optional)
true to return a Ext.Element.
Returns:
_ Js.t
The new node or Element
method insertBefore : 't 'u 'v. 't Js.t -> 'u Js.t -> bool Js.t Js.optdef -> 'v Js.t Js.meth
Applies the supplied values to the template and inserts the new node(s) before el.
Parameters:
_ Js.t
The context element
_ Js.t
The template values. See applyTemplate for details.
bool Js.t
(optional)
true to return a Ext.Element.
Returns:
_ Js.t
The new node or Element
method insertFirst : 'w 'x 'y. 'w Js.t -> 'x Js.t -> bool Js.t Js.optdef -> 'y Js.t Js.meth
Applies the supplied values to the template and inserts the new node(s) as the first child of el.
Parameters:
_ Js.t
The context element
_ Js.t
The template values. See applyTemplate for details.
bool Js.t
(optional)
true to return a Ext.Element.
Returns:
_ Js.t
The new node or Element
method overwrite : 'z 'a1 'b1. 'z Js.t -> 'a1 Js.t -> bool Js.t Js.optdef -> 'b1 Js.t Js.meth
Applies the supplied values to the template and overwrites the content of el with the new node(s).
Parameters:
_ Js.t
The context element
_ Js.t
The template values. See applyTemplate for details.
bool Js.t
(optional)
true to return a Ext.Element.
Returns:
_ Js.t
The new node or Element
method set : Js.js_string Js.t -> bool Js.t Js.optdef -> 'j Js.t Js.meth
Sets the HTML used as the template and optionally compiles it.
Parameters:
Js.js_string Js.t
bool Js.t
(optional)
True to compile the template.
Returns:
Ext_Template.t Js.t
this