Yield components with IDs in the tree of children.
(self)
| 417 | yield "\n".join([list_path, p]), t |
| 418 | |
| 419 | def _traverse_ids(self): |
| 420 | """Yield components with IDs in the tree of children.""" |
| 421 | for t in self._traverse(): |
| 422 | if isinstance(t, Component) and getattr(t, "id", None) is not None: |
| 423 | yield t |
| 424 | |
| 425 | def __iter__(self): |
| 426 | """Yield IDs in the tree of children.""" |