I'm wondering if it's possible to set actions to the words in a WordCloud. I'd like to press a word and have it printed. I noticed here that Button[] can be used like ToolTip[] so changed the example code
entities = EntityValue[CountryData[], {"Name", "Population"}];
WordCloud[{Tooltip[#[[1]], #[[2]]], #[[2]]} & /@ entities]
into this but didn't work 'cause strings were expected. Then I thought that maybe an hyperlink would work but this only works with URL, right?
WordCloud[{Button[#[[1]], Print[#[[1]]]]} & /@ entities]
Thank's for your help
WordCloud[{Button[#[[1]], Print[#[[1]]]]} & /@ entities]
orWordCloud[{Button[#[[1]], Print@ #], #[[2]]} & /@ entities]
$\endgroup$