diff --git a/api-viewer/PMGAPI.js b/api-viewer/PMGAPI.js index bcd703b..e4504af 100644 --- a/api-viewer/PMGAPI.js +++ b/api-viewer/PMGAPI.js @@ -189,15 +189,28 @@ Ext.onReady(function() { if (info.returns) { - var rtype = info.returns.type; - if (!rtype && info.returns.items) + var retinf = info.returns; + var rtype = retinf.type; + if (!rtype && retinf.items) rtype = 'array'; if (!rtype) rtype = 'object'; - sections.push({ - title: 'Returns: ' + rtype - }); + var returnhtml; + if (retinf.items) { + returnhtml = '
items: ' + JSON.stringify(retinf.items, null, 4) + '
'; + } + + if (retinf.properties) { + returnhtml = returnhtml || ''; + returnhtml += '
properties:' + JSON.stringify(retinf.properties, null, 4);
+                   }
+
+		   sections.push({
+		       title: 'Returns: ' + rtype,
+		       bodyPadding: 10,
+		       html: returnhtml
+		   });
 		}
 
 		var permhtml = '';