TabPanelItemBuilder.TabTemplate(TemplateName) Method

Specifies the client-side tabTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public TabPanelItemBuilder TabTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
TabPanelItemBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().TabPanel()
    .Items(items => {
        items.Add().TabTemplate(new TemplateName("myTabPanelItem_tabTemplate"));
    })
)

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