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

Function parse_wildcards

dash/development/_py_components_generation.py:429–444  ·  view source on GitHub ↗

Pull out the wildcard attributes from the Component props. Parameters ---------- props: dict Dictionary with {propName: propMetadata} structure Returns ------- list List of Dash valid wildcard prefixes

(props)

Source from the content-addressed store, hash-verified

427
428
429def parse_wildcards(props):
430 """Pull out the wildcard attributes from the Component props.
431 Parameters
432 ----------
433 props: dict
434 Dictionary with {propName: propMetadata} structure
435 Returns
436 -------
437 list
438 List of Dash valid wildcard prefixes
439 """
440 list_of_valid_wildcard_attr_prefixes = []
441 for wildcard_attr in ["data-*", "aria-*"]:
442 if wildcard_attr in props:
443 list_of_valid_wildcard_attr_prefixes.append(wildcard_attr[:-1])
444 return list_of_valid_wildcard_attr_prefixes
445
446
447def reorder_props(props):

Callers 1

generate_class_stringFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…