Back to Devexpress

PopoverBuilder.ContentTemplate(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-popoverbuilder-dot-contenttemplate-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

PopoverBuilder.ContentTemplate(String) Method

Specifies the client-side contentTemplate.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public PopoverBuilder ContentTemplate(
    string templateContent
)

Parameters

NameTypeDescription
templateContentString

A string that contains the template.

|

Returns

TypeDescription
PopoverBuilder

A reference to this instance after the method is called.

|

Remarks

This method allows you to specify a short template for a content. Refer to the Templates article for more information and code examples.

cshtml
@(Html.DevExtreme().Popover()
    .ContentTemplate("Template content")
)

See Also

PopoverBuilder Class

PopoverBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace