Active Navigation selection; is it possible?

  • 3
  • Question
  • Updated 1 year ago
  • Answered
Is it possible to have an active navigation selection? Similar to how the active tab of a tab set behaves? 

If anyone has successfully implemented this could you please share?

Thanks!
Photo of Josef Lagorio

Josef Lagorio

  • 2,842 Points 2k badge 2x thumb

Posted 2 years ago

  • 3
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Josef,

Do you mean that you want to show which navigation item the user is currently on? If so you'll probably end up having to do it in a Javascript snippet. You would need to determine which navigation item your user is on (maybe based on the page name?) and then set some CSS on the navigation based on that. 
Photo of Josef Lagorio

Josef Lagorio

  • 2,842 Points 2k badge 2x thumb
Would you happen to have any examples of this being done in a similar fashion? 
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Unfortunately not. I actually got the idea from this post (I'm not sure why I didn't link to it in my initial response; I must have just forgotten to). You could get page name from the skuid.page.name function, and then set CSS from there. Admittedly, I haven't set CSS styles from Javascript before, but I know it is possible.