Hi,
I would like to disable editing for a specific column in a tabulator but not for the whole tabulator. In the panel docs it talks about being able to set custom editors (Tabulator — Panel 0.12.6 documentation). For example I would like to be able to edit Col 2 and Col 3 but not Col1. I tried setting an editor and giving it editable: False (see code) but this does not work, the cells in the column are still editable. Is there some way to accomplish this?
import pandas as pd
import panel as pn
df = pd.DataFrame({
'Col 1': [1, 2, 3],
'Col 2': [True, False, True],
'Col 3': ['A', 'B', 'C'],
})
editors = {
'Col 1': {'type': 'number', 'editable': False},
}
tabulator = pn.widgets.Tabulator(df, editors=editors)
tabulator.show()