(rows=100, data_fn=generate_mock_data)
| 239 | |
| 240 | |
| 241 | def get_props(rows=100, data_fn=generate_mock_data): |
| 242 | mockProps = data_fn(rows) |
| 243 | |
| 244 | mockProps.update( |
| 245 | dict( |
| 246 | columns=[ |
| 247 | dict( |
| 248 | c, |
| 249 | name=c["name"] if "name" in c else c["id"], |
| 250 | on_change=dict(action="none"), |
| 251 | renamable=True, |
| 252 | deletable=True, |
| 253 | ) |
| 254 | for c in mockProps["columns"] |
| 255 | ] |
| 256 | ) |
| 257 | ) |
| 258 | |
| 259 | baseProps = dict( |
| 260 | id="table", |
| 261 | editable=True, |
| 262 | page_action="none", |
| 263 | style_table=dict( |
| 264 | maxHeight="800px", height="800px", maxWidth="1000px", width="1000px" |
| 265 | ), |
| 266 | style_cell=dict(maxWidth=150, minWidth=150, width=150), |
| 267 | ) |
| 268 | |
| 269 | baseProps.update(mockProps) |
| 270 | |
| 271 | return baseProps |
searching dependent graphs…