Hi mhueser
yes, When i use widget box or give a column a css_classes, it pops up manual issue is happen.
For a solution, try this
Try this:
import panel as pn
pn.extension('tabulator',comms = 'vscode')
import numpy as np
import pandas as pd
import datetime as dt
import param
from panel.reactive import ReactiveHTML, Viewable
df = pd.DataFrame({
'int': [1, 2, 3],
'float': [3.14, 6.28, 9.42],
'str': ['A', 'B', 'C'],
'bool': [True, False, True],
'date': [dt.date(2019, 1, 1), dt.date(2020, 1, 1), dt.date(2020, 1, 10)],
'datetime': [dt.datetime(2019, 1, 1, 10), dt.datetime(2020, 1, 1, 12), dt.datetime(2020, 1, 10, 13)]
}, index=[1, 2, 3])
multi_choice = pn.widgets.MultiChoice(name='MultiSelect', value=['Apple', 'Pear'],
options=['Apple', 'Banana', 'Pear', 'Strawberry'])
df_widget = pn.widgets.Tabulator(df)
class HTML_WidgetBox(ReactiveHTML):
object = param.ClassSelector(class_=Viewable)
_template = """
<div id="clickable" style="border-radius:5px; border:1px black solid;" >
${object}
</div>
"""
def __init__(self, object, **params):
super().__init__(object=object, **params)
pn.Column(
HTML_WidgetBox(multi_choice),
pn.WidgetBox(df_widget, width=800, height=500),
height = 500).show()
Kind regards
Victor