# 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.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### 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.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### 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.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### 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`

The partial view representing the template.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### 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`

The name of the template handler function.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### Example

```
 
             @( Html.Kendo().Notification()
                        .Name("Notification")
                        .Templates(t=>t.Add().ClientTemplateHandler("handler"))
            )
             
```

### ClientTemplate(Kendo.Mvc.UI.Fluent.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.

#### RETURNS

Returns the current instance of [NotificationTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/notificationtemplatebuilder).

#### Example

```
 
             @( Html.Kendo().Notification()
                        .Name("Notification")
                        .Templates(t=>t.Add()
                            .ClientTemplate(Html.Kendo()
                                .Template()
                                .AddHtml("<p>template</p>")
                             )
                        )
            )
             
```
