Vue Gallery - Enable the Slideshow
The Gallery UI component supports the display of images in a slideshow. To specify the time span that the UI component must wait before moving on to the next image, assign a positive number to the slideshowDelay property. This number specifies the time span in milliseconds. If it is zero, slideshow is disabled.
Code
- <template>
- <DxGallery
- :data-source="dataSource"
- :height="300"
- :slideshow-delay="1500"
- />
- </template>
- <script>
- import 'devextreme/dist/css/dx.fluent.blue.light.css';
- import { DxGallery } from 'devextreme-vue/gallery';
- export default {
- components: {
- DxGallery
- },
- data() {
- return {
- dataSource: [
- 'https://js.devexpress.com/Content/images/doc/25_1/PhoneJS/person1.png',
- 'https://js.devexpress.com/Content/images/doc/25_1/PhoneJS/person2.png',
- 'https://js.devexpress.com/Content/images/doc/25_1/PhoneJS/person3.png'
- ]
- };
- }
- }
- </script>