Output a select widget. Refer to: `pywebio.input.select()` .. note:: Unlike `pywebio.input.select()`, when ``multiple=True`` and the user is using PC/macOS, `put_select()` will use `bootstrap-select `_ by default. Setting
(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '',
multiple: bool = None, value: Union[List, str] = None, native: bool = None, help_text: str = None,
scope: str = None, position: int = OutputPosition.BOTTOM)
| 171 | |
| 172 | |
| 173 | def put_select(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '', |
| 174 | multiple: bool = None, value: Union[List, str] = None, native: bool = None, help_text: str = None, |
| 175 | scope: str = None, position: int = OutputPosition.BOTTOM) -> Output: |
| 176 | """Output a select widget. Refer to: `pywebio.input.select()` |
| 177 | |
| 178 | .. note:: |
| 179 | |
| 180 | Unlike `pywebio.input.select()`, when ``multiple=True`` and the user is using PC/macOS, `put_select()` will use |
| 181 | `bootstrap-select <https://github.com/snapappointments/bootstrap-select>`_ by default. Setting |
| 182 | ``native=True`` will force PyWebIO to use native select component on all platforms and vice versa. |
| 183 | """ |
| 184 | from pywebio.input import select |
| 185 | check_dom_name_value(name, 'pin `name`') |
| 186 | single_input_return = select(name=name, options=options, label=label, multiple=multiple, |
| 187 | value=value, help_text=help_text, native=native) |
| 188 | return _pin_output(single_input_return, scope, position) |
| 189 | |
| 190 | |
| 191 | def put_checkbox(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '', |
searching dependent graphs…