MultiView

A widget used to display a view and to switch between several views.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js

The dxMultiView widget includes several items (views). These items are placed horizontally next to one another and navigated by panning to the left or right. The widget is often used together with the dxTabs widget to display tab contents.

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

  • jQuery
    Use the dxMultiView jQuery plug-in.

    HTML
    <div id="multiView"></div>
    JavaScript
    $("#multiView").dxMultiView({
        dataSource: multiViewData,
        selectedIndex: 0
    });
  • Knockout
    Add a div element and apply the dxMultiView binding to this element.

    HTML
    <div data-bind="dxMultiView: {
        dataSource: multiViewData,
        selectedIndex: 0
    }"></div>
  • Angular
    Add a div element and apply the dx-multi-view directive to this element.

    HTML
    <div dx-multi-view="{
        dataSource: multiViewData,
        selectedIndex: 0
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

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

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the dxMultiView widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events exposed by this widget.

Default Item Template

This section lists the data source fields that are used in a default template for multi-view 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