[bokeh] CustomJS Callback - Get old value ?

Hi,

It's not currently possible. You would need to store the the current value somewhere (on window, or Bokeh, or wherever else that is convenient) and then refer to that as the "last" value in a subsequent call.

Thanks,

Bryan

···

On Jul 29, 2018, at 03:57, phuebu via Bokeh Discussion - Public <[email protected]> wrote:

Hi,

When using callbacks from on_change we get given both the old value and the new value of the attribute which has changed.

Is it also possible to get the old value of an attribute when using CustomJS callbacks?

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/a892c093-c9cd-403f-b0a1-67770f9687dc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.