feat(code chunk outputs): add a stencila-ui-node-outputs
component and components for common output types e.g. stencila-string
, stencila-image-object
etc
#2145
Labels
Summary
Problem
The
<stencila-code-chunk>
component needs a UI component to display its outputs. This is current unimplemented:Currently, the designs for this are component are minimal and don't show how to display the actual outputs:
The
outputs
of a code chunk can be anyNode
type but will usually be a primitive type (as listed in "Data values" in #2027), anImageObject
(e.g. a plot) or aDatatable
(tabular data with columns having specific types).The
examples/kernels/code-chunk/output-types-r.json
andexamples/kernels/code-chunk/output-types-python.json
have examples of all these output types and illustrate how display ofoutputs
need to be improved.Each output node needs to be presented separately
This is actually six separate primitive outputs from the one
CodeChunk
but they are all on the same line:Datatables are not displaying at all because on how they are encoded to DOM HTML
Images are shown at full size and not constrained to be within the node card
Tasks
<stencila-ui-node-outputs>
component (similar tostencila-ui-node-messages
andstencila-ui-node-authors
)outputs
:Boolean
Integer
UnsignedInteger
Number
String
Array
Object
ImageObject
DataTable
The text was updated successfully, but these errors were encountered: