Output an input widget. Refer to: `pywebio.input.input()`
(name: str, type: str = 'text', *, label: str = '', value: str = None, placeholder: str = None,
readonly: bool = None, datalist: List[str] = None, help_text: str = None, scope: str = None,
position: int = OutputPosition.BOTTOM)
| 148 | |
| 149 | |
| 150 | def put_input(name: str, type: str = 'text', *, label: str = '', value: str = None, placeholder: str = None, |
| 151 | readonly: bool = None, datalist: List[str] = None, help_text: str = None, scope: str = None, |
| 152 | position: int = OutputPosition.BOTTOM) -> Output: |
| 153 | """Output an input widget. Refer to: `pywebio.input.input()`""" |
| 154 | from pywebio.input import input |
| 155 | check_dom_name_value(name, 'pin `name`') |
| 156 | single_input_return = input(name=name, label=label, value=value, type=type, placeholder=placeholder, |
| 157 | readonly=readonly, datalist=datalist, help_text=help_text) |
| 158 | return _pin_output(single_input_return, scope, position) |
| 159 | |
| 160 | |
| 161 | def put_textarea(name: str, *, label: str = '', rows: int = 6, code: Union[bool, Dict] = None, maxlength: int = None, |
searching dependent graphs…