0

我有一个允许用户编辑的行的数据表。

cols = [{"name": i, "id": i} for i in df.columns]
cols[0]["presentation"] = 'dropdown'

return hmml.Div ([dash_table.DataTable(
                            id='subproducts-table',
                            columns=cols,
                            data=df.to_dict('records'),
                            page_size=20,
                            fixed_rows={'headers': True},
                            editable=True )
})

一些列有一个下拉菜单作为可编辑组件。我的问题是如何通过回调获取在数据表内的下拉列表中选择的值?

PS:我可以使用参数datadata_previous参数在选择后获取所有数据......所以如果有人知道它们之间的差异,也会对我有所帮助。

PS 2:active_cell参数不返回带有下拉列表的单元格

4

0 回答 0