DevExtreme Vue - Switch Between Views
By default, an end user can switch between views by swiping. Assign false to the swipeEnabled option to disable this feature.
JavaScript
- $(function() {
- $("#multiViewContainer").dxMultiView({
- dataSource: multiViewItems,
- swipeEnabled: false
- });
- });
You can switch the views from code by changing the selectedIndex or selectedItem option.
JavaScript
- $("#multiViewContainer").dxMultiView("option", "selectedIndex", 1);
By default, the MultiView widget animates switching between views. You can disable animation by setting the animationEnabled option to false.
JavaScript
- $(function() {
- $("#multiViewContainer").dxMultiView({
- dataSource: multiViewItems,
- animationEnabled: false
- });
- });
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.