ChartCommonAnnotationConfigBuilder.TooltipTemplate(TemplateName) Method

Specifies the client-side tooltipTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ChartCommonAnnotationConfigBuilder TooltipTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
ChartCommonAnnotationConfigBuilder

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()
    .CommonAnnotationSettings(settings => settings
        .TooltipTemplate(new TemplateName("myChartCommonAnnotationConfig_tooltipTemplate"))
    )
)

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