mirror of
https://github.com/wassname/baukit.git
synced 2026-06-27 17:29:37 +08:00
Fewer choices in datalist example.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user