dash-table-experiments
Dash table experiments
Last updated 3 years ago by chriddyp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dash-table-experiments 
SYNC missed versions from official npm registry.

dash-table-experiments

What does a Dash Table component look like? dash-table-experiments is a package of alpha-level explorations in a Dash Table component. Everything is subject to change. See the CHANGELOG.md for recent changes.

The Dash Table component will likely be merged into the dash-core-components once it stabilizes.

For updates and more, please see the dash community discussion on tables.

If your organization or company is interested in sponsoring enhancements to this project, please reach out.

Example from usage.py Dash DataTable

Example from usage-editable.py Editable Dash DataTable

Usage

# Install 
$ pip install dash-table-experiments

Usage with Callbacks

Per this Dash community answer, to use callbacks with dash-table-experiments there are two key steps (for a full working example see usage-callback.py):

# 1. Declare the table in app.layout
dt.DataTable(
    rows=[{}], # initialise the rows
    row_selectable=True,
    filterable=True,
    sortable=True,
    selected_row_indices=[],
    id='datatable'
)

# 2. Update rows in a callback
@app.callback(Output('datatable', 'rows'), [Input('field-dropdown', 'value')])
def update_datatable(user_selection):
    """
    For user selections, return the relevant table
    """
    if user_selection == 'Summary':
        return DATA.to_dict('records')
    else:
        return SOMEOTHERDATA.to_dict('records')

Usage with Graphs

This example demonstrates the user's ability to select data points either in the table which updates the plot, or in the reverse, select points on the graph which updates the selection on the table. For a full working example see usage.py.

Usage Enabling Edits to a Table

Enable edits to a table which updates other objects e.g. a graph. For a full working example see usage-editable.py

Current Tags

  • 0.6.0                                ...           latest (3 years ago)

14 Versions

  • 0.6.0                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.6.0-rc1                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |