ChartAnnotationConfigBuilder.TooltipTemplate(TemplateName) Method

Specifies the client-side tooltipTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ChartAnnotationConfigBuilder TooltipTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
ChartAnnotationConfigBuilder

A reference to this instance after the method is called.

Remarks

This method applies an external template to a tooltip. Refer to External Templates for more information and code examples.

@(Html.DevExtreme().Chart()
    .Annotations(annotations => {
        annotations.Add().TooltipTemplate(new TemplateName("myChartAnnotationConfig_tooltipTemplate"));
    })
)

@using(Html.DevExtreme().NamedTemplate("myChartAnnotationConfig_tooltipTemplate")) {
    <div>
        Template content
    </div>
}
See Also