/ui/utils/jsonDataview

The jsonDataview module exports as default an object with a create method for JSON dataviews.

Methods

(inner) create(dataview)

The create method for json dataviews assigns the setData method to the dataview object.

Parameters:
NameTypeDescription
dataviewdataview

Dataview object.

(inner) setData(data)

The [json] dataview setData method sets the stringified JSON data as textcontent of the dataview.target element.

Parameters:
NameTypeDescription
dataObject

JSON data.