--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
There is no simple one line setting to make this happen but you can do the following.Store the list of selected rows in your javaScript and listen to every "select" event with something like this functionvar selectedRows = {};function handleSelection() {var selection = table.getSelection();var row = selection[0]['row'];selectedRows['row'] = true;var newSelection = [];for (var r in selectedRows) {newSelection.push({"row": r});}table.setSelection(newSelection);}
On Fri, May 18, 2012 at 11:17 PM, clayadavis <claya...@gmail.com> wrote:
This seems like it would be easy, but my search skills seem to be
failing me. Is there a way to set the default behavior for a Table
Chart to emulate always having the 'ctrl' key pressed? In other words,
whenever I click on an unselected row, I want to add it to the
currently selected rows; clicking on an unselected row would then
unselect it, similar to checkboxes.
The context for this is to select/unselect from the Table Chart items
which I want to compare in a Pie Chart.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
Thanks. Good point :)
My snippet does not handle this case at all. However, what is the desired behavior? Do you want that row to be added, removed, clear selection or else?