50
Views
12
Comments
SidebarOverlay
Application Type
Traditional Web

hi there I'm using a sidebar in my application that has overlay true. but that  has a problem   if the user clicks outside of the sidebar  it closes i don't want to close the sidebar if the user clicks outside of it  

2022-12-12 06-07-07
Dhivyaraj Sivam

Hi Bala,

I have attached the OML file for your issue. This will be useful for you. 


Use this CSS.
.sidebar.sidebar-open::before {
display: block !important;


Thanks,

Dhivyaraj Sivam

ReactiveSidebarwithOverlayDemo.oml
2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi Divya,

This post is for Traditional web.


Regards,

Wasimkhan S

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi,

You can set overlay to "False".


Regards,

Wasimkhan S

2025-03-10 11-09-37
Bala Murugan

hi @Wasim Khan s

if I set overlay to false means that will allow the user to interact with the screen I dont want the user to access the screen  input box  are accessible when  the sidebar is open and it should not close when the user clicks outside of the sidebar

Thanks,
bala

2021-10-17 12-36-16
Amreen Shaikh

Hi Bala,


HasOverlay(Boolean): OptionalIf set to True, an overlay is displayed behind the Sidebar. If set to False, there is no overlay. This is the default value.

please refer this documentation.

https://success.outsystems.com/documentation/11/developing_an_application/design_ui/patterns/using_traditional_web_patterns/navigation/sidebar/

Regards,

Amreen

2025-03-10 11-09-37
Bala Murugan

thanks for your answer @Dhivyaraj Sivam  but it is not working the side bar is closing on clicking outside of it 



2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi,

Did you try by setting value as false?

Regards,

Wasimkhan S

2025-03-10 11-09-37
Bala Murugan

 yes @Wasim Khan  but it will allow the user to interact with the screen  i don't want to user to interact with the screen when sidebar is  active  only the user can change the values in sidebar

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi,

This is the behavior of side bar. If we set the Overlay as "True".

On click action is triggered to hide the side bar. as it is added on onclick of that container.

You can take a clone of this side bar from OutsystemsUI and remove the onclick action and try using it in your app and check. It may work.


Sample: https://wasim.outsystemscloud.com/Test/Sidebar.aspx?


Regards,

Wasimkhan S

2019-09-30 07-35-56
Aurelio Junior

Hello,

You can do this using only CSS. Add this CSS to your theme:

.sidebar.is--visible .sidebar-overlay {
    pointer-events: none;
}

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Correct me if I am wrong.

This will remove the pointer and does not close the side bar but it still it will allow user to interact with the screen.


Regards,

Wasimkhan S

2019-09-30 07-35-56
Aurelio Junior

No, it will remove the pointer cursor AND prevent all pointer interactions with that specific element.

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