build(aio): render whether parameters are optional (#22435)
Closes #22134 PR Close #22435
This commit is contained in:

committed by
Alex Eagle

parent
25a43041d2
commit
1ea41d48d3
@ -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>
|
||||
|
Reference in New Issue
Block a user