build(aio): render whether parameters are optional (#22435)

Closes #22134

PR Close #22435
This commit is contained in:
Pete Bacon Darwin
2018-02-24 21:45:47 +00:00
committed by Alex Eagle
parent 25a43041d2
commit 1ea41d48d3
3 changed files with 9 additions and 5 deletions

View File

@ -19,9 +19,13 @@
<tr class="{$ parameterClass $}">
<td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td>
<td class="param-description">
{% if parameter.description | trim %}{$ parameter.description | marked $}
{% marked %}
{% if parameter.isOptional %}Optional.{% endif %}
{% if parameter.description | trim %}{$ parameter.description $}
{% elseif parameter.type %}<code>{$ parameter.type $}</code>
{% endif %}
{% endmarked %}
</td>
</tr>{% endfor %}
</tbody>