Skip to content

Commit d8c25a0

Browse files
committed
Selected rows in Streamlit
1 parent 1bcdd9a commit d8c25a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/streamlit.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ We have a sample application available at https://itables.streamlit.app (source
1313
style="height: 600px; width: 100%;"></iframe>
1414
```
1515

16+
## Selected rows
17+
18+
This feature was added in ITables v2.2.0.
19+
20+
Use the `selected_rows: list[int]` argument from `interactive_table` to
21+
select rows when the table is first displayed. Add `select=True` to let the user modify the selection. Then, the `interactive_table` component returns a dict, with a key `"selected_rows"` that points to the updated selection.
22+
1623
## Limitations
1724

1825
In most cases, you will be able to use `interactive_table` in a

0 commit comments

Comments
 (0)