|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
| 5 | +from .._deprecated import warn_deprecated |
5 | 6 | from ..types import Jsonifiable |
6 | 7 |
|
7 | 8 | __all__ = ( |
@@ -163,7 +164,7 @@ def input_select( |
163 | 164 | multiple |
164 | 165 | Is selection of multiple items allowed? |
165 | 166 | selectize |
166 | | - Whether to use selectize.js or not. |
| 167 | + Deprecated. Use ``input_selectize()`` instead of passing ``selectize=True``. |
167 | 168 | width |
168 | 169 | The CSS width, e.g. '400px', or '100%' |
169 | 170 | size |
@@ -192,6 +193,24 @@ def input_select( |
192 | 193 | * :func:`~shiny.ui.input_radio_buttons` |
193 | 194 | * :func:`~shiny.ui.input_checkbox_group` |
194 | 195 | """ |
| 196 | + if selectize: |
| 197 | + warn_deprecated( |
| 198 | + "`selectize` parameter of `input_select()` is deprecated. " |
| 199 | + "Use `input_selectize()` instead of passing `selectize=True`." |
| 200 | + ) |
| 201 | + |
| 202 | + if remove_button is not None: |
| 203 | + warn_deprecated( |
| 204 | + "`remove_button` parameter of `input_select()` is deprecated. " |
| 205 | + "Use `input_selectize()` instead." |
| 206 | + ) |
| 207 | + |
| 208 | + if options is not None: |
| 209 | + warn_deprecated( |
| 210 | + "`options` parameter of `input_select()` is deprecated. " |
| 211 | + "Use `input_selectize()` instead." |
| 212 | + ) |
| 213 | + |
195 | 214 | resolved_id = resolve_id(id) |
196 | 215 |
|
197 | 216 | x = _input_select_impl( |
@@ -226,6 +245,8 @@ def _input_select_impl( |
226 | 245 | if options is not None and selectize is False: |
227 | 246 | raise Exception("Options can only be set when selectize is `True`.") |
228 | 247 |
|
| 248 | + # TODO: Warn if remove is not None and selectize is False |
| 249 | + |
229 | 250 | remove_button = _resolve_remove_button(remove_button, multiple) |
230 | 251 |
|
231 | 252 | resolved_id = resolve_id(id) |
|
0 commit comments