|
| 1 | +The Components tab displays a collapsible representation of the views and components that are currently being rendered. Selecting a component from the tree will open it in the [Object Inspector](../object-inspector/). |
| 2 | + |
| 3 | +<img src="/images/guides/ember-inspector/component-tree-intro.png" width="680"> |
| 4 | + |
| 5 | +Components will be displayed with curly braces. Views are grayed out and not selectable. Use the [View Tree](../view-tree/) to get more information on Views that are being rendered. |
| 6 | + |
| 7 | +### Scrolling to a Component in the Browser |
| 8 | + |
| 9 | +Clicking the 'eye' icon to the right of a component will scroll that component into view in the browser. |
| 10 | + |
| 11 | +### Expanding and Collapsing Components |
| 12 | + |
| 13 | +Components can have their children hidden and shown by clicking the caret just to the left of the component. |
| 14 | + |
| 15 | +The two icons to the left of the search field will expand or collapse all components. |
| 16 | + |
| 17 | +<img src="/images/guides/ember-inspector/component-tree-toolbar-expand.png" width="680"> |
| 18 | + |
| 19 | +### Filtering Components |
| 20 | + |
| 21 | +By typing in the search field you can limit the components that are shown in the tree. |
| 22 | + |
| 23 | +<img src="/images/guides/ember-inspector/component-tree-filtering.png" width="680"> |
| 24 | + |
| 25 | +### Highlighting Templates |
| 26 | + |
| 27 | +#### Hovering over the Component Tree |
| 28 | + |
| 29 | +When you hover over the items in the Component Tree, the related component will be |
| 30 | +highlighted in your app. For every highlighted component, you can see the |
| 31 | +template name and its associated objects. |
| 32 | + |
| 33 | +<img src="/images/guides/ember-inspector/component-tree-hover.png" width="680"> |
| 34 | + |
| 35 | +#### Hovering over the app |
| 36 | + |
| 37 | +If you want to highlight a component directly within your app, click on the icon to the left of the search bar (this is the same behavior as the [View Tree](../view-tree/)) |
| 38 | +As your our mouse passes over it, the related component will be |
| 39 | +highlighted. |
| 40 | + |
| 41 | +<img src="/images/guides/ember-inspector/component-tree-toolbar-inspect.png" width="500"> |
| 42 | + |
| 43 | + |
| 44 | +If you click on a highlighted template or component, the Inspector will select it. You can then |
| 45 | +click on the backing objects to send them to the object inspector. |
| 46 | + |
| 47 | +<img src="/images/guides/ember-inspector/component-tree-hover.png"> |
| 48 | + |
| 49 | +Click on the `X` button to deselect a template. |
| 50 | + |
0 commit comments