WidgetTemplate
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Represents a Syncfusion template.
- C#
- VB.NET
public class WidgetTemplate
Public Class WidgetTemplate
Templates in the Syncfusion library are either plain global JavaScript functions, or HTML snippets using their template syntax.
Constructors
WidgetTemplate()
Initializes a new instance of WidgetTemplate.
Properties
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: "")
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>"
};
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")