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> <thead>
<tr> <tr>
<th>Attribute</th> <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> <th>Description</th>
</tr> </tr>
</thead> </thead>
@ -194,8 +205,17 @@ defined in <$ githubViewLink(doc) $>
<@ for prop in doc.properties @> <@ for prop in doc.properties @>
<tr> <tr>
<td> <td>
<@ if doc.name != 'Icon' @>
<@ endif @>
<$ prop.name $> <$ prop.name $>
</td> </td>
<@ if hasTypes @>
<td>
<$ prop.type.name $>
</td>
<@ endif @>
<td> <td>
<$ prop.description $> <$ prop.description $>
</td> </td>