Skip to content

Commit ce13d34

Browse files
committed
inputs, default inputs and outputs
1 parent 808b236 commit ce13d34

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

services/static-webserver/client/source/class/osparc/info/FunctionLarge.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ qx.Class.define("osparc.info.FunctionLarge", {
5959
const infoLayout = osparc.info.Utils.infoElementsToLayout(infoElements, isStudy);
6060
vBox.add(infoLayout);
6161

62+
// inputs, default inputs and outputs
63+
const info = {
64+
"Inputs": this.getFunction().getInputSchema()["schema_content"],
65+
"Default Inputs": this.getFunction().getDefaultInputs(),
66+
"Outputs": this.getFunction().getOutputSchema()["schema_content"],
67+
};
68+
const divId = "function-info-viewer";
69+
const htmlEmbed = osparc.wrapper.JsonFormatter.getInstance().createContainer(divId);
70+
vBox.add(htmlEmbed, {
71+
flex: 1
72+
});
73+
vBox.addListener("appear", () => {
74+
osparc.wrapper.JsonFormatter.getInstance().setJson(info, divId);
75+
});
76+
6277
// Copy Id button
6378
const text = "Function Id";
6479
const copyIdButton = new qx.ui.form.Button(null, "@FontAwesome5Solid/copy/12").set({

0 commit comments

Comments
 (0)