MultiView

The MultiView is a widget that contains several views. An end user navigates through the views by swiping them in the horizontal direction.

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/multi_view
Export: default
MultiView interactive configuration
Copy Code
Copy to Codepen
$("#multiview").dxMultiView({
});

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

  • jQuery

    HTML
    <div id="multiView"></div>
    JavaScript
    var multiViewItems = [
        { text: "Personal Data" },
        { text: "Contacts" },
        { text: "Address" }
    ];
    $(function () {
        $("#multiView").dxMultiView({
            items: multiViewItems
        });
    });
  • AngularJS

    HTML
    <div ng-controller="DemoController">
        <div dx-multi-view="{
            items: multiViewItems
        }"></div>
    </div>
    JavaScript
    angular.module('DemoApp', ['dx'])
        .controller("DemoController", function ($scope) {
            $scope.multiViewItems = [
                // ...   
            ];
        });
  • Knockout

    HTML
    <div data-bind="dxMultiView: {
        items: multiViewItems
    }"></div>
    JavaScript
    var viewModel = {
        multiViewItems: [
            // ...
        ]
    };
    ko.applyBindings(viewModel);
  • ASP.NET MVC Wrappers

    @(Html.DevExtreme().MultiView()
        .ID("multiView")
        .Items(items => {
            items.Add().Text("Personal Data");
            items.Add().Text("Contacts");
            items.Add().Text("Address");
        })
    )

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 topics in the Installation section.

View Demo

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the MultiView 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 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