Skip to content

Commit

Permalink
document how to make a column non-editable (#3489)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed May 5, 2022
1 parent 13b6af7 commit eabe1d9
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit eabe1d9

Please sign in to comment.