mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +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 -@>
|
<@- endmacro -@>
|
||||||
|
|
||||||
<@ macro returnObject(params) -@>
|
<@ macro returnObject(params) -@>
|
||||||
<@- if params -@><br>
|
<@- if params -@>
|
||||||
<@- for param in params -@>
|
<table class="table returns-object-table param-table">
|
||||||
<code><$ param.type $></code> <span class="fixed-width"><$ param.key $></span> <$ param.description $><br>
|
<thead>
|
||||||
<@- endfor @>
|
<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 @>
|
<@- endif @>
|
||||||
<@- endmacro -@>
|
<@- endmacro -@>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user