29
Views
6
Comments
Solved
Disable tabs swipe on mobile

Hi guys,

I am trying to disable the tabs swipe on my mobile app using the TabsToggleSwipe located in Outsystems UI but is does not seem to work. Maybe i am not using it properly also.

In the OnReady action of the block using the Tabs, I try to disable it as follow:

This is not working for me.

Thank you in advance for your input.

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Marc, 
you passed the wrong ID to client Action You need to pass the header ID. 




It will just disable one header and if you want to disable all tabs (the best approach), put them in one container and give the "css that will disable all contain "; otherwise, in the Onready, use the same action three times.


Edit:DEMO Link for your reference


I hope it will be clear 

Thanks and regards,
Akshay Deshpande

2024-01-31 05-29-41
Akshay Deshpande

Hello Marc, 
It is working in my personal environment. Please check that you have passed the proper Widget ID.


Thanks and Regards,
Akshay Deshpande

UserImage.jpg
Marc Ghosn

Hi Akshay, is your TabsToggleSwipe inside the OnReader action of the screen?

If not, where is the best place to call it?

I seem to be passing the right widget ID (See below)

Regards,

Marc

UserImage.jpg
Marc Ghosn

Yes that's what i meant sorry.

Ok strange i'll see why i'm still able to swipe on my mobile app.

Thank you,

Marc

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Marc, 
you passed the wrong ID to client Action You need to pass the header ID. 




It will just disable one header and if you want to disable all tabs (the best approach), put them in one container and give the "css that will disable all contain "; otherwise, in the Onready, use the same action three times.


Edit:DEMO Link for your reference


I hope it will be clear 

Thanks and regards,
Akshay Deshpande

UserImage.jpg
Marc Ghosn

Alright thanks for your help Akshay .

Regards,

Marc

2024-01-31 05-29-41
Akshay Deshpande

If it’s help you , then feel free to marked as solution 

Keep coding :) 


Thanks and regards,

Akshay Deshpande 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.