Content Visualisers (3.6-preview)
Overview
Content visualizers are an extensible viewer that allows simple and complex objects to displayed in either Prettified, Tabular or Raw formats. To open the visualizer, click either the magnifier icon or the show all [...] ellipsis.

The DefaultContentVisualizerProvider attempts to resolve the content by invoking the CanVisualize method of each registered visualizer. If a matching visualizer is found, it is automatically selected—this can be seen in the top-right corner. If no visualizer matches, the DefaultContentVisualizer is used as a fallback. You can switch between available visualizers using the dropdown in the top-right. Once a visualizer is selected, its supported renderers are displayed in the tabs on the left.


The Copy icon now copies the content in its Prettified format, rather than the Raw format used in the table view.
Custom visualizers
Elsa Studio comes with a built in JSON visualiser, that supports both prettified json and tabular renderings for array values. Here is an example of theJsonContentVisualizer implementation:
Visualizers can then be registered with:
This will then be available in the visualizer drop-down list and be used when evaluating availiable visualizers.
Last updated