documentation/src/default_theme/paramProperty._
Michel Simonot 7a548eb444 fix(html): Display all levels of parameter properties. (#933)
Fix default_theme to render all parameter properties.
 
- Split the parameter property template portion into its own partial.
- Have the new partial recursively call itself if there are sub-properties.
2017-10-04 12:34:39 -07:00

16 lines
588 B
Plaintext

<tr>
<td class='break-word'><span class='code bold'><%- property.name %></span> <code class='quiet'><%= formatType(property.type) %></code>
<% if (property.default) { %>
(default <code><%- property.default %></code>)
<% } %></td>
<td class='break-word'><span><%= md(property.description, true) %></span></td>
</tr>
<% if(property.properties && property.properties.length) { %>
<% property.properties.forEach(function(childProperty) { %>
<%= renderParamProperty({
property: childProperty,
renderParamProperty: renderParamProperty
}) %>
<% }) %>
<% } %>