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

Function get_props

components/dash-table/tests/selenium/utils.py:241–271  ·  view source on GitHub ↗
(rows=100, data_fn=generate_mock_data)

Source from the content-addressed store, hash-verified

239
240
241def 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

Callers 15

get_appFunction · 0.90
on_focusFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90
get_appFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by 15

get_appFunction · 0.72
on_focusFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72
get_appFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…