File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
services/static-webserver/client/source/class/osparc/info Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments