Skip to content

Commit 7a3d16e

Browse files
committed
Add Combobox to docs
Fixes: jupyter-widgets#2573
1 parent 5a571cc commit 7a3d16e

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

docs/source/examples/Widget List.ipynb

+25-2
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@
675675
"cell_type": "markdown",
676676
"metadata": {},
677677
"source": [
678-
"There are several widgets that can be used to display a string value. The `Text` and `Textarea` widgets accept input. The `HTML` and `HTMLMath` widgets display a string as HTML (`HTMLMath` also renders math). The `Label` widget can be used to construct a custom control label."
678+
"There are several widgets that can be used to display a string value. The `Text`, `Textarea`, and `Combobox` widgets accept input. The `HTML` and `HTMLMath` widgets display a string as HTML (`HTMLMath` also renders math). The `Label` widget can be used to construct a custom control label."
679679
]
680680
},
681681
{
@@ -724,6 +724,29 @@
724724
")"
725725
]
726726
},
727+
{
728+
"cell_type": "markdown",
729+
"metadata": {},
730+
"source": [
731+
"### Combobox"
732+
]
733+
},
734+
{
735+
"cell_type": "code",
736+
"execution_count": null,
737+
"metadata": {},
738+
"outputs": [],
739+
"source": [
740+
"widgets.Combobox(\n",
741+
" # value='John',\n",
742+
" placeholder='Choose Someone',\n",
743+
" options=['Paul', 'John', 'George', 'Ringo'],\n",
744+
" description='Combobox:',\n",
745+
" ensure_option=True,\n",
746+
" disabled=False\n",
747+
")"
748+
]
749+
},
727750
{
728751
"cell_type": "markdown",
729752
"metadata": {
@@ -1175,5 +1198,5 @@
11751198
}
11761199
},
11771200
"nbformat": 4,
1178-
"nbformat_minor": 2
1201+
"nbformat_minor": 4
11791202
}

0 commit comments

Comments
 (0)