Vue MultiView - Loop the Views
The MultiView UI component can display views in a loop. The loop mode enables an end user to swipe through the last view to the first and vice versa. To enable this mode, assign true to the loop property.
App.vue
- <template>
- <DxMultiView
- :data-source="multiViewItems"
- :loop="true"
- />
- </template>
- <script>
- import 'devextreme/dist/css/dx.fluent.blue.light.css';
- import DxMultiView from 'devextreme-vue/multi-view';
- export default {
- components: {
- DxMultiView
- },
- data() {
- return {
- multiViewItems: [
- { text: 'Personal Data' },
- { text: 'Contacts' }
- ]
- };
- }
- };
- </script>