Skip to main content

FormTabBuilder<T>.TabTemplate(TemplateName) Method

Specifies the client-side tabTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FormTabBuilder<T> TabTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
FormTabBuilder<T>

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().Form()
    .Items(items => {
        items.AddTabbed()
            .Tabs(tabs => {
                tabs.Add().TabTemplate(new TemplateName("myFormTab_tabTemplate"));
            });
    })
)

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