Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabulator: document how to make a column non-editable #3489

Merged
merged 1 commit into from
May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/reference/widgets/Tabulator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"\n",
"##### Display\n",
"\n",
"* **``disabled``** (``boolean``): Whether the widget is editable\n",
"* **``disabled``** (``boolean``): Whether the cells are editable\n",
"* **``name``** (``str``): The title of the widget\n",
"\n",
"##### Properties\n",
Expand Down Expand Up @@ -203,7 +203,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Therefore it is often preferable to use one of the [Tabulator editors](http://tabulator.info/docs/5.0/edit#edit) directly. Note that in addition to the standard Tabulator editors the Tabulator widget also supports `'date'` and `'datetime'` editors:"
"Therefore it is often preferable to use one of the [Tabulator editors](http://tabulator.info/docs/5.0/edit#edit) directly. Setting the editor of a column to `None` makes that column non-editable. Note that in addition to the standard Tabulator editors the Tabulator widget also supports `'date'` and `'datetime'` editors:"
]
},
{
Expand All @@ -215,6 +215,7 @@
"from bokeh.models.widgets.tables import CheckboxEditor, NumberEditor, SelectEditor\n",
"\n",
"bokeh_editors = {\n",
" 'int': None,\n",
" 'float': {'type': 'number', 'max': 10, 'step': 0.1},\n",
" 'bool': {'type': 'tickCross', 'tristate': True, 'indeterminateValue': None},\n",
" 'str': {'type': 'autocomplete', 'values': True},\n",
Expand Down