plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

Add section on how to use with callbacks #24

Closed ucg8j closed 6 years ago

ucg8j commented 6 years ago

At present, the answer is quite buried in the dash community forum.

chriddyp commented 6 years ago

Thanks @ucg8j ! Could we add two sections here?

  1. Using Callbacks to respond to selections and filters

(fill in with example adapted from usage.py)

  1. Using Callbacks to populate the table

(fill in with example that has rows as an Output


Also, could we make the examples standalone? Otherwise, we'll inevitably get questions on the forum like "Example doesn't work, DATA is undefined"

ucg8j commented 6 years ago

@chriddyp good suggestions. I'll take the datasets from the other examples... I won't be at my computer until tomorrow. But I'll get the changes done then.

ucg8j commented 6 years ago

@chriddyp - I've just added a usage-callback.py. I think it covers both 1 + 2 as it has a user selection (1) and a callback with rows updated in the Output. This might not be what you meant though! To clarify, for '1' did you mean responding to user interactions with the table (e.g. selecting rows) which then triggers something else?

chriddyp commented 6 years ago

This looks good to me @ucg8j , thanks!

chriddyp commented 6 years ago

Great, thanks for your patience on this one @ucg8j ! Looks good to me 😄