dynamically change Select widget values

So i want to change the select options dynamically from another callback JS.

What i do from the callback is this:

select.options = new_data.data;

But after doing this, the values dont actually change on screen. i tried calling "change.emit()". doesn't help.

What should i do to "force" the change?

Thanks!

Hi,

What is new_data.data? Select options expects a list of string values value, label tuples (or a specific dict format dirt for grouped select). It looks like to are passing a data source which is not the expected thing.

Thanks,

Bryan

···

On Jan 22, 2019, at 23:54, Tamir Gefen [email protected] wrote:

So i want to change the select options dynamically from another callback JS.

What i do from the callback is this:

select.options = new_data.data;


But after doing this, the values dont actually change on screen. i tried calling "change.emit()". doesn't help.

What should i do to “force” the change?

Thanks!

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” 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].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/df69fb37-ca94-40b6-a42e-d2a946e67457%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.