The Dependencies viewer lets you see how elements in your application are related, including widgets, queries, functions, and variables.
Your application is displayed as a graph, with elements as nodes and dependencies as directed edges. The dependency graph does not include information about Function libraries and styles.
To add an element to the graph, tick or double-click the checkbox next to the entry in the list. Once an element is added to the graph, its dependencies can be explored by clicking the chevrons on the right or the left of the element. If no chevron is displayed, there are no elements for the graph to expand.
Use the graph icon displayed in the top right of every element in the graph when hovering over it to navigate to the element, allowing for an easy way to investigate the element in more detail. Select a node or an item in the list to highlight other elements that element depends on (or vice versa).
For example, in the screenshot below, the Dropdown widget named w_filter2dropdown
depends on data from a query obsYear
. The value selected in that dropdown in turn feeds two other widgets and a query.
You can configure which related nodes are highlighted with the Highlight dropdown. Choose from:
The nodes are arranged automatically, but you can click-and-drag nodes to rearrange them on the graph. You can also use the Hierarchy layout button with Upstream or Downstream highlights to see the selected node and its upstream or downstream dependencies as a hierarchy. Select the Restore auto layout button to exit the hierarchy layout.
Use the Refresh button to update the graph if you make changes to your application while the panel is open.
You can expand the Dependencies Viewer table to see additional columns with performance data. This data can help you identify which parts of a Slate application might be slow.