Skip to main content

SankeyTooltipBuilder.LinkTooltipTemplate(TemplateName) Method

Specifies the client-side linkTooltipTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SankeyTooltipBuilder LinkTooltipTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
SankeyTooltipBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().Sankey()
    .Tooltip(tooltip => tooltip
        .LinkTooltipTemplate(new TemplateName("mySankeyTooltip_linkTooltipTemplate"))
    )
)

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