Skip to content

Commit 6bb33d3

Browse files
authored
Merge pull request #45 from Bestra/new-inspector-component-tab
Add guides page for inspector component tab
2 parents f8cab3b + 5aa750c commit 6bb33d3

File tree

9 files changed

+52
-0
lines changed

9 files changed

+52
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+

guides/v3.1.0/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
url: "installation"
205205
- title: "Object Inspector"
206206
url: "object-inspector"
207+
- title: "The Component Tree"
208+
url: "component-tree"
207209
- title: "The View Tree"
208210
url: "view-tree"
209211
- title: "Inspecting Routes"
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)