SlideOutItemBuilder.MenuTemplate(TemplateName) Method

Specifies the client-side menuTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SlideOutItemBuilder MenuTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
SlideOutItemBuilder

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().SlideOut()
    .Items(items => {
        items.Add().MenuTemplate(new TemplateName("mySlideOutItem_menuTemplate"));
    })
)

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