Utility package for raw data visualization used for debugging purposes.
Methods
-
staticbcdui.widget.visualizeXml.visualizeModel(args)
widget/visualizeXml/visualizeXml.js, line 110 -
Visualiazes data of a model / data provider
Name Type Description argsobject The argument map containing the following elements: Name Type Default Description targetHtmltargetHtmlRef Id of the html element where to show the output. titlestring optional Title of the content box; if not provided, the title is set to the ID of the visualized model. idRefstring optional Id of the model to be visualized inputModelbcdui.core.DataProvider optional Instead of an id, the model can be provided directly isAutoRefreshboolean true optional Automatically redraw when model changes stylesheetUrlstring /bcdui/js/widget/visualizeXml/visualizeXmlCaller.xslt optional renderer stylesheet onReadyfunction optional onReady function for renderer Example
// Load, transform and visualize a model let sm = new bcdui.core.SimpleModel("input.xml"); let mw = new bcdui.core.ModelWrapper({inputModel: sm, chain: "transformer.xslt"}); bcdui.widget.visualizeXml.visualizeModel({targetHtml: "testOutput", inputModel: mw, title: "Transformed Output"});