Skip to content
Advertisement

Shiny Custom Hoverable Dropdown

In my app I would like to have a custom html button as a dropdown menu. I want to have the selected option as an input$ variable. It shall then be printed to the console. With my code I am able to detect the click but instead of printing e.g. Link 1 it returns just an empty string.

JavaScript

Advertisement

Answer

You can do

JavaScript

But this will also applies to other <a> tags in the app. So you can do instead

JavaScript
Advertisement