Skip to content

DatePicker not updating enabled/disabled #6728

@bryevdv

Description

@bryevdv

this seems to just be a case of missing plumbing (I don't see any change handlers hooked up)

ref: https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/frzcAhV7zYw

test code:

from bokeh.layouts import widgetbox
from bokeh.models import widgets
from bokeh.plotting import curdoc

def change_time():
    print('previous values: ', time.value, time.min_date, time.max_date)
    time.value = '2015-11-10'
    time.min_date = '2015-10-01'
    time.max_date = '2015-12-30'
    print('changed values: ', time.value, time.min_date, time.max_date)

time = widgets.inputs.DatePicker(title="Intervention", value='2015-11-02', min_date='2015-11-01', max_date='2015-12-01')
button = widgets.Button(label="Change time", button_type="success")
button.on_click(change_time)
layout = widgetbox([time,button])

curdoc().add_root(layout)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions