MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / put_select

Function put_select

pywebio/pin.py:173–188  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

171
172
173def 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
191def put_checkbox(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '',

Callers 3

targetFunction · 0.85
mainFunction · 0.85
pin_widgetsFunction · 0.85

Calls 3

selectFunction · 0.90
check_dom_name_valueFunction · 0.85
_pin_outputFunction · 0.85

Tested by 1

targetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…