Skip to content

Commit ec6d703

Browse files
committed
Update react components
1 parent 1f16dea commit ec6d703

15 files changed

+43
-37
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashMpComponents
22
Title: Dash components for the Materials Project
3-
Version: 0.0.22
3+
Version: 0.0.23
44
Description: Dash components for the Materials Project
55
Depends: R (>= 3.0.2)
66
Imports:

dash_mp_components/CameraContext.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@
55

66
class CameraContext(Component):
77
"""A CameraContext component.
8-
8+
Use this component to synchronize the camera of multiple
9+
SimpleSceneComponent
910
1011
Keyword arguments:
1112
- children (optional)
12-
- id (optional)"""
13+
- id (optional): The ID used to identify this component in Dash callbacks"""
1314
@_explicitize_args
1415
def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):
1516
self._prop_names = ['children', 'id']
1617
self._type = 'CameraContext'
1718
self._namespace = 'dash_mp_components'
18-
self._valid_wildcard_attributes = []
19+
self._valid_wildcard_attributes = []
1920
self.available_properties = ['children', 'id']
20-
self.available_wildcard_properties = []
21+
self.available_wildcard_properties = []
2122

2223
_explicit_args = kwargs.pop('_explicit_args')
2324
_locals = locals()
@@ -26,6 +27,6 @@ def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):
2627

2728
for k in []:
2829
if k not in args:
29-
raise TypeError(
30-
'Required argument `' + k + '` was not specified.')
30+
raise TypeError('Required argument `' + k +
31+
'` was not specified.')
3132
super(CameraContext, self).__init__(children=children, **args)

dash_mp_components/MatMaterialsTable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class MatMaterialsTable(Component):
77
"""A MatMaterialsTable component.
8-
8+
Display a table of materials
99
1010
Keyword arguments:
1111
- id (string; optional)

dash_mp_components/MatPrintViewContext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
class MatPrintViewContext(Component):
77
"""A MatPrintViewContext component.
8-
8+
Print view context pass a boolean prop that allows children component to know if
9+
they are in print-view. Those components can react in various ways ( hidding some elements, changing
10+
their layouts, and so on... )
911
1012
Keyword arguments:
1113
- children (boolean | number | string | dict | list; optional)

dash_mp_components/MatSearchGrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class MatSearchGrid(Component):
77
"""A MatSearchGrid component.
8-
8+
Use this search grid component if you do not use a periodic table
99
1010
Keyword arguments:
1111
- state (dict; optional): Latest configuration of the funnel

dash_mp_components/MatSidebar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class MatSidebar(Component):
77
"""A MatSidebar component.
8-
8+
Material navigation bar
99
1010
Keyword arguments:
1111
- id (string; optional): The ID used to identify this component in Dash callbacks.

dash_mp_components/Search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
class Search(Component):
77
"""A Search component.
8-
8+
This search grid is using the periodic context provider. This allows the grid
9+
to be notified of changes happening in the periodic table. Use it if you intend
10+
to use the periodic table
911
1012
Keyword arguments:
1113
- state (dict; optional): Latest configuration of the funnel

dash_mp_components/SearchGrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class SearchGrid(Component):
77
"""A SearchGrid component.
8-
8+
This is the whole search page, wrapped in a component
99
1010
Keyword arguments:
1111
- id (string; optional): The ID used to identify this component in Dash callbacks."""

dash_mp_components/dash_mp_components.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_mp_components/dash_mp_components.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)