Skip to content

Commit 47db892

Browse files
committed
More doc update
1 parent fe74788 commit 47db892

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

search_usage.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import dash_mp_components
2+
import dash
3+
from dash.dependencies import Input, Output
4+
import dash_html_components as html
5+
import dash_core_components as dcc
6+
from tests.grid import grid
7+
import functools
8+
from dash.exceptions import PreventUpdate
9+
from pymatgen import MPRester
10+
11+
app = dash.Dash(__name__)
12+
app.layout = html.Div(children=[
13+
dash_mp_components.Search(
14+
id='test3', allDefinitions=grid, initCards=['has_properties'])
15+
])
16+
17+
# use True to load a dev build of react
18+
if __name__ == '__main__':
19+
app.run_server(debug=True)

usage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
])
1919
])
2020

21-
# make a dedicated example
22-
# dash_mp_components.Search(
23-
# id='test3', allDefinitions=grid, initCards=['has_properties']),
24-
# dash_mp_components.SearchGrid(id='test'),
25-
# dash_mp_components.MatSidebar(id='bar', layout='horizontal'),
26-
2721

2822
@app.callback(
2923
Output(component_id='mat-result-table', component_property='data'),

0 commit comments

Comments
 (0)