TemplateBuilder
Methods
AddHtml(System.String)
Allows setting conventional HTML elements.
Parameters
html - System.String
Example
Razor
@(Html.Kendo().Template()
.AddHtml("<p>HTML content</p>")
)
AddHtml(System.Func)
Parameters
html - System.Func<Object,Object>
AddComponent(System.Action)
Defines a Telerik UI component into the template.
Parameters
widgetBuilder - System.Action<WidgetFactory>
The action that defines the Telerik UI component.
Example
Razor
@(Html.Kendo().Template()
.AddComponent(c => c.Button().Name("testBtn").Content("Settings"))
)