Employee Center Sub-Topics Widget

alona3
Tera Contributor

Is there way to show all topic without clicking "View ALL" o r Expand to show all topics icon?

 

alona3_0-1739445182596.png

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @alona3 

 

I think no, as this is like a standard size which shows the sub topics like this, also expanding it by default can impact the user experience, 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Maryna K
Tera Contributor

For this case, you need to clone the Sub-Topics widget.
Then, on the emp_taxonomy_topic page, replace the existing Sub-Topics widget with the newly cloned one.
Finally, in the Client controller of the new widget, set c.data.viewAllMode to true.

c.data.viewAllMode = true;

 

See the screenshots below for reference.

 

Bildschirmfoto 2025-04-04 um 11.19.56.pngBildschirmfoto 2025-04-04 um 11.20.27.pngBildschirmfoto 2025-04-04 um 11.22.29.pngBildschirmfoto 2025-04-04 um 11.23.06.png

 

 

Additionally, you can add scrolling to the sub-topics section if needed. Adding these styles to getSubtopicsContainerStyle function:

"max-height": "12.4rem",
"overflow-y": "scroll"

 

 

Bildschirmfoto 2025-04-04 um 12.46.03.png

Bildschirmfoto 2025-04-04 um 12.49.31.png

Thanks @Maryna K , it is working exactly as you described!

Maryna K
Tera Contributor

You're very welcome! I'm glad to hear it was helpful😊.