(cell_selectable, markdown_options)
| 5 | |
| 6 | |
| 7 | def get_app(cell_selectable, markdown_options): |
| 8 | md = "[Click me](/assets/logo.png)" |
| 9 | |
| 10 | data = [dict(a=md, b=md), dict(a=md, b=md)] |
| 11 | |
| 12 | app = dash.Dash(__name__) |
| 13 | |
| 14 | props = dict( |
| 15 | id="table", |
| 16 | columns=[ |
| 17 | dict(name="a", id="a", type="text", presentation="markdown"), |
| 18 | dict(name="b", id="b", type="text", presentation="markdown"), |
| 19 | ], |
| 20 | data=data, |
| 21 | cell_selectable=cell_selectable, |
| 22 | ) |
| 23 | |
| 24 | if markdown_options is not None: |
| 25 | props["markdown_options"] = markdown_options |
| 26 | |
| 27 | app.layout = DataTable(**props) |
| 28 | |
| 29 | return app |
| 30 | |
| 31 | |
| 32 | @pytest.mark.parametrize( |
no test coverage detected
searching dependent graphs…