Hi. It's possible to disable the swipe event to open the Sidebar widget?

I only want to trigger the Open/Close event by the press of a button.


Hi David,

The swipe events are implemented with the Swipe Events pattern.

https://success.outsystems.com/Documentation/SILK_UI_Framework/03_Building_UI_Through_Pattern_Composition/Using_Silk_UI_Patterns/SwipeEvents_Pattern

So your screen or layout webblock has this pattern, if you remove it you remove the swipe functionality.

Regards,

Daniel

Daniël Kuhlmann wrote:

Hi David,

The swipe events are implemented with the Swipe Events pattern.

https://success.outsystems.com/Documentation/SILK_UI_Framework/03_Building_UI_Through_Pattern_Composition/Using_Silk_UI_Patterns/SwipeEvents_Pattern

So your screen or layout webblock has this pattern, if you remove it you remove the swipe functionality.

Regards,

Daniel

The Sidebar from OutSystemsUIMobile has is own Swipe Events. I want to disable that and use only buttons to show/hide this sidebar using the IsOpen state of this widget.


Solution

Hi David,

One way of achieving what you want is to clone the SideBar widget to your own module, and remove the Utilities\TouchEvents widget from it.

To clone the widget

  1. locate it in your project a and select "Open in OutSystemsUIMobile espace'.
  2. a clone of the espace is created and opened
  3. copy the widget to your own module, and close the cloned OutSystemsUIModileEspace
  4. Remove the TouchEvents widget
  5. Make sure to name your widget differently like CustomSideBar.
  6. Use the CustomSidebar instead of SideBar
  7. Use the button to set the varialable you use on the IsOpen parameter of the CustomSideBar widget to open the menu

Regards,

Daniel

Solution

Daniël Kuhlmann wrote:

Hi David,

One way of achieving what you want is to clone the SideBar widget to your own module, and remove the Utilities\TouchEvents widget from it.

To clone the widget

  1. locate it in your project a and select "Open in OutSystemsUIMobile espace'.
  2. a clone of the espace is created and opened
  3. copy the widget to your own module, and close the cloned OutSystemsUIModileEspace
  4. Remove the TouchEvents widget
  5. Make sure to name your widget differently like CustomSideBar.
  6. Use the CustomSidebar instead of SideBar
  7. Use the button to set the varialable you use on the IsOpen parameter of the CustomSideBar widget to open the menu

Regards,

Daniel

That worked out.

Thank you very much!


Your welcome, thanks for the feedback.