You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ._dataframe_unsafeimportserialize_numpy_dtypes
22
12
from .rendererimportJsonifiable, Renderer
23
13
@@ -248,7 +238,8 @@ class data_frame(Renderer[DataFrameResult]):
248
238
Row selection
249
239
-------------
250
240
When using the row selection feature, you can access the selected rows by using the
251
-
`<data_frame_renderer>.input_selected_rows()` method, where `<data_frame_renderer>` is the render function name that corresponds with the `id=` used in :func:`~shiny.ui.outout_data_frame`. Internally, this method retrieves the selected row value from session's `input.<id>_selected_rows()` value. The value returned will be `None` if no rows
241
+
`input.<id>_selected_rows()` function, where `<id>` is the `id` of the
242
+
:func:`~shiny.ui.output_data_frame`. The value returned will be `None` if no rows
252
243
are selected, or a tuple of integers representing the indices of the selected rows.
253
244
To filter a pandas data frame down to the selected rows, use
254
245
`df.iloc[list(input.<id>_selected_rows())]`.
@@ -267,6 +258,8 @@ class data_frame(Renderer[DataFrameResult]):
267
258
objects you can return from the rendering function to specify options.
268
259
"""
269
260
261
+
# `<data_frame_renderer>.input_selected_rows()` method, where `<data_frame_renderer>` is the render function name that corresponds with the `id=` used in :func:`~shiny.ui.outout_data_frame`. Internally, this method retrieves the selected row value from session's `input.<id>_selected_rows()` value. The value returned will be `None` if no rows
0 commit comments