Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Where is the example from the Dash User's Guide? #263

Open
marfel opened this issue Nov 30, 2018 · 3 comments
Open

Where is the example from the Dash User's Guide? #263

marfel opened this issue Nov 30, 2018 · 3 comments
Labels

Comments

@marfel
Copy link

marfel commented Nov 30, 2018

I apologize if this is not the right place to post this, but the Component Libraries example in the Dash User's Guide https://dash.plot.ly/gallery links directly to this repository and the data-table documentation, but not to the source code of the nice looking example (claimed to be written in < 100 lines of code). Where can I find this code? It looks quite like what I need right now.

@Marc-Andre-Rivet
Copy link
Contributor

@marfel I'm not sure where the gallery example comes from (@chriddyp ?) but here is are two similar examples that cover most of what can be seen in the gallery.

For the graph / table interaction
https://dash.plot.ly/datatable/interactivity
(Source: https://github.com/plotly/dash-docs/blob/master/tutorial/examples/table/interactivity_connected_to_graph.py)

For styling
https://dash.plot.ly/datatable/style
(Source: https://github.com/plotly/dash-docs/blob/master/tutorial/table/styling_chapter.py)

The table's selected rows styling would have been done with a custom css (see the table's css prop) as we do not currently expose a standardized API for styling selected rows.

@marfel
Copy link
Author

marfel commented Dec 3, 2018

Thanks, Marc-Andre,
I actually did find these things in the documentation. What I failed to find is

  1. how do I implement the checkboxes column, and
  2. how to make the search field work without any operator, as is shown in the "continent" column (see also my comment in this thread)

Could it be that the demo is derived from an older prototype and some of the features got dropped or changed in the mean time? That might be a bit misleading...

@Marc-Andre-Rivet
Copy link
Contributor

You're right. Something is off about that table and it does seem to be built on the prototype.

  1. You can get the checkboxes by adding row_selectable: 'multi'

  2. Operators are required in the current version of the table -- we've discussed adding those but as you point out in your comment in the filtering epic, it's not there yet.

While there is a desire for more powerful features related to filtering, you are right that making it more user friendly in the short term would be very helpful. Created an issue for the no-operator-filter here #277

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants