SlideOutBuilder.MenuGroupTemplate(TemplateName) Method

Specifies the client-side menuGroupTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SlideOutBuilder MenuGroupTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
SlideOutBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().SlideOut()
    .MenuGroupTemplate(new TemplateName("mySlideOut_menuGroupTemplate"))
)

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