SlideOut

The SlideOut widget is a classic slide-out menu paired with a view. An end user opens the menu by swiping away the view.

Included in: dx.mobile.js, dx.all.js
Module: ui/slide_out

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

  • jQuery
    Use the dxSlideOut jQuery plug-in.

    HTML
    <div id="slideOut"></div>
    JavaScript
    $("#slideOut").dxSlideOut({
        dataSource: slideOutData
    });
  • Knockout
    Add a div element and apply the dxSlideOut binding to this element.

    HTML
    <div data-bind="dxSlideOut: {
        dataSource: slideOutData
    }"></div>
  • AngularJS
    Add a div element and apply the dx-slide-out directive to this element.

    HTML
    <div dx-slide-out="{
        dataSource: slideOutData
    }"></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.

Since the SlideOut widget is used to display multiple items, it supports common Collection Container widget functionality. You can find detailed information on the principles of working with the widget in the dxSlideOut section of the Collection Container Widgets article.

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the SlideOut widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.

Default Item Template

This section lists the data source fields that are used in a default template for SlideOut items.

By default, a predefined item template is applied to display the items of this widget. This template is based on certain fields of the data source provided for this widget. Below is the list of these fields. If the default item template is not appropriate for your task, implement a custom item template based on these or other fields of your data source.

See Also