SlideOutViewBuilder.MenuTemplate(TemplateName) Method

Specifies the client-side menuTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SlideOutViewBuilder MenuTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
SlideOutViewBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().SlideOutView()
    .MenuTemplate(new TemplateName("mySlideOutView_menuTemplate"))
)

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