-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Selecting rows? #250
Comments
Hi @jnaylor92 , well actually the selection extension is included in ITables! It's a requirement for the SearchPanes and SearchBuilder extensions. I did not add an example for that extension since I was not sure how to use that information back in Python - do you have a plan for that? See also #208 for an example on how to retrieve the selected row in the context of a Shiny app (with an older version of ITables). |
A very simple example would be something like:
I really like ITables for what it gives and the way it looks in comparison to something like I am trying to build up an interactive form that includes displaying a table of data for the user to select samples to then do something further with. Using the above example it might be to plot the selected countries on a map using the lat / long |
I see. Well at the moment there is no direct way to retrieve the selected rows in ITables. That might come at a later stage when we improve the support for "apps" (i.e. Dash, Shiny, or Python widgets), but there is no ETA for that at the moment, for now ITables is "display only". Please leave the issue open though, so that I can give an update when the situation changes. |
That all makes sense and it is good to hear there is a plan to head in that direction in the future. Appreciate the quick responses |
This feature would be awesome! |
Sure! That will come at some point. Already we have made progress with the apps - now we do have a streamlit component. I think I'd like to get at least a second "app" component, ideally a jupyter widget (#267), before I expose the selected cells (without the widget I'm not sure how you'd get a callback on selection changes). NB:
|
I was also wondering about this. I use a plain simple JupyterLite notebook with a basic requirements list: |
Hi @AllanJard, now that I have a streamlit component and almost a Jupyter Widget (#267), I would like to give access to the selected rows. The problem is that I am not sure how to convert |
You want the Finally, use |
The new |
Selected rows in the widget, in Streamlit and in Shiny (#250) Version 2.2.0
I see that DataTables supports row select: https://datatables.net/examples/api/select_row.html
Is there any plan to include this in itables?
The text was updated successfully, but these errors were encountered: