Python AdminUI
TextField(title, name=None, required_message=None, password=False, dis- abled=False, value=None, placeholder=None, on_change=None, id=None) 在表单中创建文本字段。 参数 • title – 字段的标题 • name – 提交表单时传递给回调的字典数据的键 be required and an message will be shown when the field is not filled at form submission. • placeholder – the text message shown when the field is not filled. • password – set to True if it’s a password be required and an message will be shown when the field is not filled at form submission. • placeholder – the text message shown when the field is not filled. • disabled – set to True to make the control0 码力 | 67 页 | 653.37 KB | 1 年前3PyWebIO v1.8.2 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This Optional[Tuple[str, Callable[[Callable], None]]] = None, onchange: Optional[Callable[[Any], None]] = None, placeholder: Optional[str] = None, required: Optional[bool] = None, readonly: Optional[bool] = None, datalist: input field. onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 160 页 | 7.48 MB | 1 年前3PyWebIO v1.8.1 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This Optional[Tuple[str, Callable[[Callable], None]]] = None, onchange: Optional[Callable[[Any], None]] = None, placeholder: Optional[str] = None, required: Optional[bool] = None, readonly: Optional[bool] = None, datalist: input field. onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 158 页 | 7.48 MB | 1 年前3PyWebIO v1.8.0 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This Optional[Tuple[str, Callable[[Callable], None]]] = None, onchange: Optional[Callable[[Any], None]] = None, placeholder: Optional[str] = None, required: Optional[bool] = None, readonly: Optional[bool] = None, datalist: input field. onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 157 页 | 7.48 MB | 1 年前3PyWebIO v1.8.2 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This Optional[Tuple[str, Callable[[Callable], None]]] = None, onchange: Optional[Callable[[Any], None]] = None, placeholder: Optional[str] = None, required: Optional[bool] = None, readonly: Optional[bool] = None, datalist: input field. onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 158 页 | 7.48 MB | 1 年前3PyWebIO v1.8.2 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This Optional[Tuple[str, Callable[[Callable], None]]] = None, onchange: Optional[Callable[[Any], None]] = None, placeholder: Optional[str] = None, required: Optional[bool] = None, readonly: Optional[bool] = None, datalist: input field. onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 160 页 | 7.48 MB | 1 年前3PyWebIO v0.3.0 使用手册
Area', rows=3, placeholder='Some text') # 文件上传 img = file_upload("Select a image:", accept="image/*") 输入选项 输入函数可指定的参数非常丰富(全部参数及含义请见 函数文档 ): input('This is label', type=TEXT, placeholder='This is placeholder' options 中的值的列表。当用户没有勾选任 何选项时,返回空列表 pywebio.input.file_upload(label='', accept=None, name=None, placeholder='Choose file', required=None, help_text=None, **other_html_attrs) 文件上传。 accept (str or list) image/* 表示图片文件 参考 https://developer.mozilla.org/en- US/docs/Web/HTTP/Basics_of_HTTP/MIME_types placeholder (str) – 未上传文件时,文件上传框内显示的 文本 required (bool) – 是否必须要上传文件 label, name, help_text, other_html_attrs0 码力 | 72 页 | 8.55 MB | 1 年前3PyWebIO v1.5.1 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This input(label='', type='text', *, validate=None, name=None, value=None, action=None, onchange=None, placeholder=None, required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: 当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 144 页 | 7.46 MB | 1 年前3PyWebIO v1.5.2 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This input(label='', type='text', *, validate=None, name=None, value=None, action=None, onchange=None, placeholder=None, required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: 当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 144 页 | 7.46 MB | 1 年前3PyWebIO v1.5.0 使用手册
textarea('Text Area', rows=3, placeholder='Some text') # File Upload img = file_upload("Select a image:", accept="image/*") input('This is label', type=TEXT, placeholder='This is placeholder', help_text='This input(label='', type='text', *, validate=None, name=None, value=None, action=None, onchange=None, placeholder=None, required=None, readonly=None, datalist=None, help_text=None, **other_html_attrs) 文本输入 参数: 当输入项的值发生变化时的回调函数。 onchange 回调函数接收一个参数——输入项改变后的 值。 onchange 的典型用途是配合 input_update() 来在 一个表单中实现相互依赖的输入。 placeholder (str) – 输入框的提示内容。提示内容会在输 入框未输入值时以浅色字体显示在输入框中 required (bool) – 当前输入是否为必填项,默认为 False readonly (bool)0 码力 | 144 页 | 7.46 MB | 1 年前3
共 117 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12