1
0
mirror of https://github.com/Decicus/DecAPI-Docs.git synced 2024-11-22 08:52:31 +01:00

Add support for "description list" for QS and params

This commit is contained in:
Alex Thomassen 2017-04-10 10:35:12 +02:00
parent 7576f659a8
commit 47277976c3

View File

@ -127,6 +127,7 @@ $(document).ready(function() {
.clone()
.addClass(param.optional ? 'fa-times' : 'fa-check')
.removeClass('hidden');
var description = param.description;
// Parameter name
$('<th/>')
@ -135,7 +136,7 @@ $(document).ready(function() {
// Parameter description
$('<td/>')
.html(param.description)
.html(Array.isArray(description) ? description.join("<br>") : description)
.appendTo(row);
// Parameter required/optional
@ -162,6 +163,7 @@ $(document).ready(function() {
.clone()
.addClass(param.required ? 'fa-check' : 'fa-times')
.removeClass('hidden');
var description = param.description;
// Parameter name
$('<th/>')
@ -170,7 +172,7 @@ $(document).ready(function() {
// Parameter description
$('<td/>')
.html(param.description)
.html(Array.isArray(description) ? description.join("<br>") : description)
.appendTo(row);
// Parameter required/optional