Fewer choices in datalist example.

This commit is contained in:
David Bau
2022-05-07 01:02:40 -04:00
parent eb6297ecba
commit 08dcf51d37
+7 -7
View File
@@ -363,7 +363,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "21ecb0c0", "id": "cf51f9a1",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Menus, Choices, and Datalists\n", "## Menus, Choices, and Datalists\n",
@@ -374,7 +374,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "8f3032e1", "id": "c4a604f3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@@ -389,7 +389,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "20d1070c", "id": "dcf24e02",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Radio button choice arrays can be arranged horizontally or vertically based on the level of nesting." "Radio button choice arrays can be arranged horizontally or vertically based on the level of nesting."
@@ -398,7 +398,7 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "8df5514a", "id": "1fd9c71d",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@@ -414,7 +414,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "8d85174a", "id": "690f2972",
"metadata": {}, "metadata": {},
"source": [ "source": [
"A Datalist allows free-form input while also providing a dropdown menu for choices." "A Datalist allows free-form input while also providing a dropdown menu for choices."
@@ -423,12 +423,12 @@
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "07a2ed9e", "id": "ba30d08a",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from baukit import Datalist\n", "from baukit import Datalist\n",
"dl = Datalist(choices=list(range(0,101,20)))\n", "dl = Datalist(choices=[0, 40, 60, 100])\n",
"ra5 = Range(step=1)\n", "ra5 = Range(step=1)\n",
"dl.value = ra5.prop('value')\n", "dl.value = ra5.prop('value')\n",
"\n", "\n",