mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(dgeni): make returns object macro a table instead of a list
This commit is contained in:
29
scripts/docs/templates/common.template.html
vendored
29
scripts/docs/templates/common.template.html
vendored
@ -24,10 +24,31 @@ angular_controller: APIDemoCtrl <@ endif @>
|
||||
<@- endmacro -@>
|
||||
|
||||
<@ macro returnObject(params) -@>
|
||||
<@- if params -@><br>
|
||||
<@- for param in params -@>
|
||||
<code><$ param.type $></code> <span class="fixed-width"><$ param.key $></span> <$ param.description $><br>
|
||||
<@- endfor @>
|
||||
<@- if params -@>
|
||||
<table class="table returns-object-table param-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Type</th>
|
||||
<th>Details</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<@ for param in params @>
|
||||
<tr>
|
||||
<td class="fixed-width">
|
||||
<$ param.key $>
|
||||
</td>
|
||||
<td>
|
||||
<$ param.type | code $>
|
||||
</td>
|
||||
<td>
|
||||
<$ param.description | marked $>
|
||||
</td>
|
||||
</tr>
|
||||
<@ endfor @>
|
||||
</tbody>
|
||||
</table>
|
||||
<@- endif @>
|
||||
<@- endmacro -@>
|
||||
|
||||
|
Reference in New Issue
Block a user