SlideOutView

The SlideOutView widget is a classic slide-out menu paired with a view.

Included in: dx.mobile.js, dx.all.js

This widget is very similar to the SlideOut with only one difference - the SlideOut always contains the List in the slide-out menu, while the SlideOutView can hold any collection there.

You can create the widget using one of the following approaches.

  • jQuery
    Use the dxSlideOutView jQuery plug-in.

    HTML
    <div id="slideOutView"></div>
    JavaScript
    $("#slideOut").dxSlideOutView({
        contentTemplate: function(contentElement){
            contentElement.append("<p>Here is the widget content</p>")
        },
        menuTemplate: function(menuElement){
            menuElement.css("height", "100%");
            var menuList = $("<div>").dxList(listOptions);
            menuElement.append(menuList);
        }
    });
  • Knockout
    Add a div element and apply the dxSlideOutView binding to this element.

    HTML
    <div data-bind="dxSlideOutView: {
        contentTemplate: 'myContent',
        menuTemplate: 'myMenu'
    }">
        <div data-options="dxTemplate: { name: 'myContent' }">
            <p>Here is the widget content</p>
        </div>
        <div data-options="dxTemplate: { name: 'myMenu' }" style="height: 100%;">
            <div data-bind="dxList: listOptions"></div>
        </div>
    </div>
  • AngularJS
    Add a div element and apply the dx-slide-out-view directive to this element.

    HTML
    <div dx-slide-out-view="{
        contentTemplate: 'myContent',
        menuTemplate: 'myMenu'
    }">
        <div data-options="dxTemplate: { name: 'myContent' }">
            <p>Here is the widget content</p>
        </div>
        <div data-options="dxTemplate: { name: 'myMenu' }" style="height: 100%;">
            <div dx-list="listOptions"></div>
        </div>
    }"></div>

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the Installation article.

You can find the detailed information on principles of working with the widget in the dxSlideOutView section of the Individual Widgets article.

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.