Option to enable / disable a button?

Hello,

I am just wondering if there is a way to disable a button (and enable it later).

The idea is to have e.g. a “save”-button that can only be used, when there are any data available (that could be safed).

Does anyone know if bokeh widgets / buttons have such a functionality?

Thanks

Daniel

Hi,

This is still an open issue:
  
  Implement `Widget.disabled` · Issue #1376 · bokeh/bokeh · GitHub

At the moment you'd need to implement a custom extension:

  http://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html

Thanks,

Bryan

···

On Apr 17, 2017, at 01:21, 'Daniel Krause' via Bokeh Discussion - Public <[email protected]> wrote:

Hello,

I am just wondering if there is a way to disable a button (and enable it later).

The idea is to have e.g. a "save"-button that can only be used, when there are any data available (that could be safed).

Does anyone know if bokeh widgets / buttons have such a functionality?

Thanks
Daniel

--
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/89587208-864f-4ac4-9dc4-f11becd97c65%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.