In the UI

To switch between images on touch-enabled devices, the user can perform the swipe gesture. A more desktop-oriented solution for the same purpose are the Next and Previous navigation buttons. You can control the swipe gesture and the navigation buttons using the swipeEnabled and showNavButtons options, respectively.

JavaScript
$(function () {
    $("#galleryContainer").dxGallery({
        dataSource: [
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person1.png",
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person2.png"
        ],
        height: 300,
        swipeEnabled: false,
        showNavButtons: true
    });
});

With the buttons and swipe gesture, the user switches images in a particular order, and once the last image is reached, the user can only switch back. For this case, you can enable the user to jump straight to the first image, if you set the loop option to true.

JavaScript
$(function () {
    $("#galleryContainer").dxGallery({
        dataSource: [
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person1.png",
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person2.png",
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person3.png"
        ],
        height: 300,
        loop: true
    });
});

Below the current image, the Gallery shows navigation bullets that allow the user to switch images ignoring their order. To disable the navigation bullets, set the indicatorEnabled option to false. If you need to hide them completely, assign false to the showIndicator option.

JavaScript
$(function () {
    $("#galleryContainer").dxGallery({
        dataSource: [
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person1.png",
            "https://js.devexpress.com/Content/images/doc/16_2/PhoneJS/person2.png"
        ],
        height: 300,
        indicatorEnabled: false
    });
});
See Also