How to link two widgets in Panel?

Hi,
I’m trying to sync the value of a slider with a dropdown in Panel. Is there a simple way to link them so they update together?

Thanks!

One way would be to use bidirectional .link

https://panel.holoviz.org/how_to/links/links.html

https://panel.holoviz.org/how_to/links/jslinks.html#link-bi-directionally