MCPcopy Index your code
hub / github.com/plotly/dash / get_app

Function get_app

components/dash-table/tests/selenium/test_column.py:8–30  ·  view source on GitHub ↗
(props=dict())

Source from the content-addressed store, hash-verified

6
7
8def get_app(props=dict()):
9 app = dash.Dash(__name__)
10
11 baseProps = get_props()
12
13 for c in baseProps.get("columns"):
14 c["clearable"] = True
15 c["deletable"] = True
16 c["hideable"] = "last"
17 c["selectable"] = True
18
19 baseProps["column_selectable"] = "multi"
20 baseProps["filter_action"] = "native"
21 baseProps["merge_duplicate_headers"] = True
22
23 # first col is normally only 60px, make it wider since we're adding
24 # all these actions and need to interact with them
25 baseProps["style_cell_conditional"][0].update(width=120, maxWidth=120, minWidth=120)
26 baseProps.update(props)
27
28 app.layout = DataTable(**baseProps)
29
30 return app
31
32
33def test_colm001_can_delete(test):

Calls 4

get_propsFunction · 0.90
DataTableClass · 0.90
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…