You assumed correctly, I don't know how but I must have pasted an old version of the code :3 Your first link there is broken. Perhaps I simply had an error when i had setState earlier. I'll try that again.
On Oct 13, 12:02 pm, Riccardo Govoni ☢ <[email protected]> wrote: > I assume that your 'slider' variable points to a StringFilter (like you > mention in the title). In which case setState should work as you describe. > > Have a look at this > example:http://savedbythegoog.appspot.com/?id=99fb271ca54b04894ae19f44b748467... > its source code, where clicking on the button sets a specific value on > the string filter. > > If instead your 'slider' variable points effectively to a slider > NumberRangeFilter, than the state format is different, as described > inhttp://code.google.com/apis/chart/interactive/docs/gallery/controls.h... > > -- R. > > On 13 October 2011 15:22, Tday <[email protected]> wrote: > > > > > > > > > Somehow there was a missing semi colon in the paste. I do see that on > > the value = 'Broken' line. > > > On Oct 13, 10:21 am, Tday <[email protected]> wrote: > > > I'm trying to refine a "search" method of my table where there are two > > > buttons that show only what is essentially true or false. > > > Here's my listener declaration for my dashboard. > > > > google.visualization.events.addListener(dashboard, 'ready', > > > dashReady); > > > > And here's the listener function. > > > > function dashReady(){ > > > document.getElementById('workButton').onclick = > > function() { > > > slider.value = 'Working'; > > > slider.draw(); > > > }; > > > > document.getElementById('breakButton').onclick = > > function() { > > > slider.value = 'Broken' > > > slider.draw; > > > }; > > > } > > > > I also tried slider.setState({'value':'Working/Broken') but had no > > > success. Help would be appreciated! > > > -- > > 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. -- 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.
