holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.75k stars 517 forks source link

CompositeWidget types cannot be jslinked #1807

Open MarcSkovMadsen opened 3 years ago

MarcSkovMadsen commented 3 years ago

Panel 0.10.2 Bokeh 2.2.3

I currently styling all the Panel widgets and thus checking that all the parameters works. I've found that the DateRangeSlider does not work as documented at https://panel.holoviz.org/reference/widgets/DateRangeSlider.html#widgets-gallery-daterangeslider.

image

It turns out that the Direction and Tooltips works if I create separate python example. It's only the js-link that does not work

Minimal Example

import panel as pn
from datetime import date

vertical = pn.widgets.DateRangeSlider(
    name="Vertical",
    height=200, width=200,
    orientation="vertical")
vertical.start = date(2020, 1, 20)
vertical.end = date(2020, 2, 20)
vertical.value = (date(2020, 2, 18), date(2020, 2, 20))

pn.Column(vertical).servable()

image

philippjfr commented 3 years ago

DateRangeSlider is a composite widget which means some of its processing is handled in Python. I've repurposed this issue to be general.