Panorama

A widget displaying the required content in a long horizontal canvas that extends beyond the frames of the screen.

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

dxPanorama is a full screen widget that allows you to locate widgets, display data and provide services by using a long horizontal canvas that extends beyond the frames of the screen. Content is divided into items that can be explored by panning and flicking. When viewing an item, you will be able to see a portion of the item next to it. This widget is often used as a navigation map on the first page of an application. Although dxPanorama was designed based on the native WindowsPhone8 Panorama widget, it can be used on any platform.

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

  • jQuery
    Use the dxPanorama jQuery plug-in.

    HTML
    <div id="panorama"></div>
    JavaScript
    $("#panorama").dxPanorama({
        dataSource: panoramaData,
        title: 'Panorama title',
        backgroundImage: '/images/panoramaBG.png'
    });
  • Knockout
    Add a div element and apply the dxPanorama binding to this element.

    HTML
    <div data-bind="dxPanorama: {
        dataSource: panoramaData,
        title: 'Panorama title',
        backgroundImage: '/images/panoramaBG.png'
    }"></div>
  • Angular
    Add a div element and apply the dx-panorama directive to this element.

    HTML
    <div dx-panorama="{
        dataSource: panoramaData,
        title: 'Panorama title',
        backgroundImage: '/images/panoramaBG.png'
    }"></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 dxPanorama 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 dxPanorama section of the Collection Container Widgets article.

View Demo

Watch Video

Show Example:
AngularJS
Knockout
jQuery

Configuration

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