NotificationTemplateBuilder
Methods
Type(System.String)
Sets the notification type (i.e. template name). The value should be a valid JavaScript identifier.
Parameters
value - System.String
The type of the notification popup.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add().Type("info"))
)
ClientTemplateID(System.String)
Sets the client ID of the notification template.
Parameters
value - System.String
The id of the kendo template script.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add().ClientTemplateID("template-id"))
)
ClientTemplate(System.String)
Sets the Kendo UI template to be used for the notifications.
Parameters
value - System.String
The content of the notification template.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add().ClientTemplate("template"))
)
ClientTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
Sets the view template to be used for the notifications.
Parameters
value - Microsoft.AspNetCore.Html.IHtmlContent
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add().ClientTemplateView(Html.Partial("templateView")))
)
ClientTemplateHandler(System.String)
Sets the Kendo UI template to be used for the notifications.
Parameters
value - System.String
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add().ClientTemplateHandler("handler"))
)
ClientTemplate(Kendo.Mvc.UI.TemplateBuilder)
Sets the Kendo UI template to be used for the notifications.
Parameters
template - TemplateBuilder<TModel>
The content defined using the Telerik UI Template component.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Templates(t=>t.Add()
.ClientTemplate(Html.Kendo()
.Template()
.AddHtml("<p>template</p>")
)
)
)