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)
| 427 | |
| 428 | |
| 429 | def 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 | |
| 447 | def reorder_props(props): |
no test coverage detected
searching dependent graphs…