Skip to main content

WidgetTemplate

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

Represents a Syncfusion template.

public class WidgetTemplate

Templates in the Syncfusion library are either plain global JavaScript functions, or HTML snippets using their template syntax.

Constructors​

Instance member WidgetTemplate()​

Initializes a new instance of WidgetTemplate.

Properties​

Instance member Id​

String: Returns or sets the identifier of the WidgetTemplate: the id of the script element that is added to the page and that the options refer to using the #id selector. (Default: "")

Instance member Template​

String: Returns or sets the content of the WidgetTemplate: an HTML snippet that uses the Syncfusion template syntax, or JavaScript code. (Default: "")

Example:

var template = new ej2Base.WidgetTemplate
{
Id = "employeeTemplate",
Template = "<div class='employee'><b>${name}</b><br/>${title}</div>"
};

Instance member Type​

String: Returns or sets the type of the template: the type attribute of the script element added to the page. Use "text/x-jsrender", the default, for HTML templates. (Default: "text/x-jsrender")