This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from dash import Dash, Output, Input, State, html, dcc, callback, MATCH | |
| import uuid | |
| # All-in-One Components should be suffixed with 'AIO' | |
| class NumberRangeAIO(html.Div): # html.Div will be the "parent" component | |
| # A set of functions that create pattern-matching callbacks of the subcomponents | |
| class ids: | |
| minValueInput = lambda aio_id: { | |
| 'component': 'NumberRangeAIO', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dash_ag_grid as dag | |
| from dash import Dash, html, dcc, Input, Output, callback | |
| import pandas as pd | |
| app = Dash() | |
| # adapted from https://dash.plotly.com/dash-ag-grid/text-filters#text-matcher | |
| df = pd.read_csv( | |
| "https://raw.githubusercontent.com/plotly/datasets/master/ag-grid/olympic-winners.csv" |