put scroll on Bokeh Dropdown choices

限于喜欢 提交于 2020-01-24 09:26:26

问题


Is it possible to put scroll for Bokeh dropdown when there are many options? For example, in the following image, I would like to have 5 options at a time, and be able to scroll down to other options when needed. That would be great if you could provide a working example. Here is a an example for a dropdown.

from bokeh.models import Dropdown

mymenu = [(str(i), str(i)) for i in range(1, 10)]

dd = Dropdown(label="DropDown Label",
                     button_type="warning", menu=mymenu, width=150)

show(ddmsn)

I tried putting a height for the DropDown but it seems it only takes into account the height of the label.

来源:https://stackoverflow.com/questions/54931545/put-scroll-on-bokeh-dropdown-choices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!