docs(button): button attribute docs

This commit is contained in:
Drew Rygh
2015-12-01 17:10:40 -06:00
parent 711e28c77d
commit 262b883211
2 changed files with 48 additions and 1 deletions

View File

@ -11,6 +11,7 @@ doc: "<$ doc.name $>"
docType: "<$ doc.docType $>"
---
<@ macro paramList(paramData) -@>
<@- if paramData -@><span class="params">(
<@- for param in paramData -@>
@ -53,6 +54,7 @@ docType: "<$ doc.docType $>"
</table>
<@ endmacro @>
<@- macro functionSyntax(fn) @>
<@- set sep = joiner(', ') -@>
<code><$ fn.name $>(<@- for param in fn.params @><$ sep() $>
@ -153,5 +155,29 @@ defined in <$ githubViewLink(doc) $>
<@ endfor -@>
<@- endif -@>
<@ if doc.properties @>
<h2>Attributes:</h2>
<table class="table" style="margin:0;">
<thead>
<tr>
<th>Attribute</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<@ for prop in doc.properties @>
<tr>
<td>
<$ prop.name $>
</td>
<td>
<$ prop.description $>
</td>
</tr>
<@ endfor @>
</tbody>
</table>
<@ endif @>
<@ endblock @>
<@ endblock @>