How to disable expand or collapse on swiping in the Sidebar container
By default, in the Sidebar control, gestures that allow you expand or collapse the sidebar container on swiping are enabled. This is used in mobile devices. You can disable this functionality by setting the enableGestures property of the Sidebar control to false. The following code snippet demonstrates how to disable expand or collapse on swiping in the sidebar container.
// Sidebar Initialization
let defaultSidebar: Sidebar = new Sidebar({
// Disables gestures in sidebar
enableGestures: false
});
Final output
