Of course there is a way:You should pass the row and / or column indexes that you get from getSelection() as parameters to dataTable.getCell() or dataTable.getValue() methods. We will improve the example and documentation, as this question repeats.
Regards, VizGuy On Tue, May 5, 2009 at 3:36 PM, viz-adict <[email protected]> wrote: > > Hi! > > Is it possible to access to the value of a selection (not anly the row > or colum)? > > Does it existe something like item.value? > > Example > > var selection = table.getSelection(); > var message = ''; > for (var i = 0; i < selection.length; i++) { > var item = selection[i]; > if (item.row != null && item.column != null) { > message += '{row:' + item.row + ',column:' + item.column + '}'; > } else if (item.row != null) { > message += '{row:' + item.row + '}'; > } else if (item.column != null) { > message += '{column:' + item.column + '}'; > } > > From > > http://code.google.com/apis/visualization/documentation/events.html#The_Select_Event > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
