(props=dict())
| 6 | |
| 7 | |
| 8 | def 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 | |
| 33 | def test_colm001_can_delete(test): |
no test coverage detected
searching dependent graphs…