Visualize.Chart.Builder.Inspector (Visualize v0.2.25)

Copy Markdown View Source

The builder's inspector: Visualize.Chart.explain/1 rendered (spec/14 §18.9).

One row per leaf path of the stack, ordered by path, with the value, the layer that set it and the layers it overrode. It is a view of one function, so what it shows and what Visualize.Chart.stack/1 produces cannot drift (D-83). A row carries its path and the position of the layer that set it, so a click gets a person from a value they can see to the layer they must edit (D-87).

Its two limits are Visualize.Chart.explain/1's own: a value a higher layer discarded whole has no path in the result and so no row, and overrode names only the layers that wrote a value at the same path.

This module compiles only when Phoenix.Component is loaded (spec/10 §1.1, D-45, D-85).

Summary

Functions

Renders the inspector (spec/10 §15.3).

Functions

panel(assigns)

Renders the inspector (spec/10 §15.3).

A <table class="vis-builder-inspector"> carrying BuilderHook, with one <tr class="vis-builder-entry"> per entry of Visualize.Chart.explain/1.

Attributes

  • id (:string) (required) - the hook element's id.
  • layers (:list) (required) - the layers, as Visualize.Chart.stack/1 takes them.
  • target (:any) - the phx-target of the panel's events. Defaults to nil.
  • class (:string) - appended to the panel's class. Defaults to nil.