Here is a tabulator with row_content:
https://vcu-ssg.github.io/ssg-quarto-soc-analysis/31_explore.html
I’d like the row_content to be collapsed on loading. An older version of panel had this default. Since upgrading the code my row_content is expanded on loading.
Here is the creation code:
df_widget = pn.widgets.Tabulator(
summary_df,
show_index = False,
sorters=[
{'field':'Wrkld','dir': 'desc'},
{'field':'Hours','dir': 'desc'},
],
widths={'Hour Bar':'20px','Wrkld Bar':'15px'},
titles={'Hour Bar':'Lecture/total hours','Wrkld Bar':'Total/Lecture wrkld'},
sortable={'Hour Bar':False,'Wrkld Bar':False},
header_filters=filters,
formatters={
'Crse': NumberFormatter( format="0.0",text_align='center'),
'CRNs': NumberFormatter( format="0.0",text_align='center'),
'Stdnts': NumberFormatter( format="0.0",text_align='center'),
'Hours': NumberFormatter( format="0.0",text_align='center'),
'Hr.Lec': NumberFormatter( format="0.0",text_align='center'),
'Wrkld': NumberFormatter( format="0.00",text_align='center'),
'W.Lec': NumberFormatter( format="0.00",text_align='center'),
'Wrkld Bar': {'type':'html'},
'Hour Bar': {'type':'html'}
},
row_content=content_fn,
embed_content=True,
expanded = [],
selection = []
)
Note that I’m setting expanded to .
Suggestions?