Class type Ext_Template.t


class type t = object .. end
Inherits
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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns:


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:


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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns:


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:

Returns: