Properties Methods Events Direct Link

Class Ext.Template

Package:Ext
Defined In:Template.js, Template-more.js
Class:Template
Subclasses:XTemplate
Extends:Object
Represents an HTML fragment template. Templates can be precompiled for greater performance. For a list of available format functions, see Ext.util.Format.
Usage:
var t = new Ext.Template(
    '<div name="{id}">',
        '<span class="{cls}">{name:trim} {value:ellipsis(10)}</span>',
    '</div>'
);
t.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'});

Public Properties

PropertyDefined By
 disableFormats : Boolean
true to disable format functions (defaults to false)
Template
 re : RegExp
The regular expression used to match template variables
Template

Public Methods

MethodDefined By

Public Events

This class has no public events.