Is there a way to set the initial value for header_filter
?
Here are the options I tried:
import numpy as np
import panel as pn
pn.extension("tabulator")
df = pd.DataFrame(np.random.rand(100,3)-.5, columns=list("xyz"))
hf = {"x":
{'type': 'number', 'func': '>=', 'value':0}, # most intuitive to me
# {'type': 'number', 'func': '>=', 'default':0},
# {'type': 'number', 'func': '>=', 'on_start':0},
# {'type': 'number', 'func': '>=', 'initial':0},
# {'type': 'number', 'func': '>=', 'initialValue':0},
# {'type': 'number', 'func': '>=', 'load':0},
# {'type': 'number', 'func': '>=', 'onload':0},
}
tbl = pn.widgets.Tabulator(df, header_filters=hf, height=300)
tbl