docs(api): add option to add types to @property

This commit is contained in:
Drew Rygh
2015-12-03 15:59:18 -06:00
parent 32bf737d44
commit a074dae4e6

View File

@ -187,6 +187,17 @@ defined in <$ githubViewLink(doc) $>
<thead>
<tr>
<th>Attribute</th>
<@ set hasTypes = false @>
<@ for prop in doc.properties @>
<@ if prop.type @>
<@ set hasTypes = true @>
<@ endif @>
<@ endfor @>
<@ if hasTypes @>
<th>Type</th>
<@ endif @>
<th>Description</th>
</tr>
</thead>
@ -194,8 +205,17 @@ defined in <$ githubViewLink(doc) $>
<@ for prop in doc.properties @>
<tr>
<td>
<@ if doc.name != 'Icon' @>
<@ endif @>
<$ prop.name $>
</td>
<@ if hasTypes @>
<td>
<$ prop.type.name $>
</td>
<@ endif @>
<td>
<$ prop.description $>
</td>