Back to All

Is it possible to change the Custom button on Top Navigation with JavaScript?

I've been able to use dynamic links for the side navigation and the bottom bar. Is there a way to dynamically change the top navigation icon/link with JavaScript?
https://median.co/docs/add-custom-buttons

There is a sample JSON in the demo:
https://median.co/docs/top-nav-bar-demo-app

How can we use that in JavaScript?