Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

regarding service portal pages

AbdulMajidK8082
Tera Contributor

hey Guys  i have 3 widgets on a page sidebar,navbar and homepage .i want to make sidebar collapseable and expandable and based on that the display area of home widget should re adjust .how can i do it  without modifying the 3 widgets on the page

1 REPLY 1

M Iftikhar
Tera Sage

You can wrap the sidebar and home widgets inside a flex container. Make the sidebar width collapsible using a toggle button/script, and set the home widget area to flex:1 so it automatically adjusts without modifying the widgets themselves.

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.