Note: I'd like the solution not to involve jquery if possible...
On Friday, August 11, 2017 at 9:32:54 AM UTC-7, Roberto Attias wrote:
>
> I need to open a new tab with some URL when the user clicks on a cell in a
> google char table. I was trying to do this by reacting to the cell
> selection:
>
> google.visualization.events.addListener(table, 'select', tableSelectHandler);
> function tableSelectHandler() {
> const r = table.getSelection();
> const row := r[0]['row'];
> const col := r[0]['column'];
> URL = buildURLForRowAndCol(row, col);
> ...
>
> however it looks like while there is a 'row' attribute, there isn't a
> column one. Maybe I need to specify that I want to be able to select cells
> rather than just raws but it's not clear to me how to do that.
>
> As an alternative, I'd be happy to store in the column a link, but I'm not
> sure how to do that either.
>
> Can anybody help?
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/55a61007-701e-477b-aeb7-c64dabd3a2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.