PyWebIO v1.4.0 使用手册
Documentation PyWebIO, 发布 1.4.0 onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 115 页 | 1.70 MB | 1 年前3PyWebIO v1.5.2 使用手册
(callable) –当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.0 使用手册
value of this input field. onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.4.0 使用手册
(callable) – 当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False 回调的输入项 spec – 需要更新的输入项参数。注意一下参数无法被更 新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: data = input_group("Basic info",[ input('Input your name', name='name'), input('Repeat FastAPI/Starlette support 当使用FastAPI/Starlette作为PyWebIO的后端server时,你需要手动安装 fastapi 或 starlette ,另外还需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 135 页 | 7.45 MB | 1 年前3PyWebIO v1.5.0 使用手册
(callable) –当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.3 使用手册
value of this input field. onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 123 页 | 1.72 MB | 1 年前3PyWebIO v1.7.1 使用手册
value of this input field. onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 127 页 | 1.73 MB | 1 年前3PyWebIO v1.5.1 使用手册
(callable) –当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.7.0 使用手册
value of this input field. onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 125 页 | 1.72 MB | 1 年前3PyWebIO v1.6.1 使用手册
value of this input field. onchange 回调函数接收一个参数——输入项改变后的值。onchange 的典型用途 是配合input_update() 来在一个表单中实现相互依赖的输入。 • placeholder (str) –输入框的提示内容。提示内容会在输入框未输入值时以浅色 字体显示在输入框中 • required (bool) –当前输入是否为必填项,默认为 回调的输入 项 • spec –需要更新的输入项参数。注意一下参数无法被更新:type, name, validate, action, code, onchange, multiple 一个具有依赖关系的输入项的示例: country2city = { 'China': ['Beijing', 'Shanghai', 'Hong Kong'], 'USA': ['New York', 'Los FastAPI/Starlette support 当使用 FastAPI/Starlette 作为 PyWebIO 的后端 server 时,你需要手动安装 fastapi 或 starlette ,另外还 需要安装一些其他的依赖库,可以使用以下命令安装: pip3 install -U fastapi starlette uvicorn aiofiles websockets pywebio.platform.fastapi0 码力 | 123 页 | 1.72 MB | 1 年前3
共 46 条
- 1
- 2
- 3
- 4
- 5