|
1 | | -<table> |
2 | | - <tr> |
3 | | - <th colspan="2">{$ method.name $}</th> |
4 | | - </tr> |
5 | | - <tr> |
6 | | - <td colspan="2"> {$ method.description $}</td> |
| 1 | +<table class="docs-api-method-table"> |
| 2 | + <thead> |
| 3 | + <tr class="docs-api-method-name-row"> |
| 4 | + <th colspan="2" class="docs-api-method-name-cell">{$ method.name $}</th> |
| 5 | + </tr> |
| 6 | + </thead> |
| 7 | + <tr class="docs-api-method-description-row"> |
| 8 | + <td colspan="2" class="docs-api-method-description-cell">{$ method.description $}</td> |
7 | 9 | </tr> |
8 | 10 |
|
9 | 11 | {%- if method.params.length -%} |
10 | | - <tr> |
11 | | - <th colspan="2"> Parameters</th> |
12 | | - </tr> |
| 12 | + <thead> |
| 13 | + <tr class="docs-api-method-parameters-header-row"> |
| 14 | + <th colspan="2" class="docs-api-method-parameters-header-cell">Parameters</th> |
| 15 | + </tr> |
| 16 | + </thead> |
13 | 17 | {% for parameter in method.params %} |
14 | | - <tr> |
15 | | - <td> |
16 | | - <p> |
| 18 | + <tr class="docs-api-method-parameter-row"> |
| 19 | + <td class="docs-api-method-parameter-cell"> |
| 20 | + <p class="docs-api-method-parameter-name"> |
17 | 21 | {$ parameter.name $} |
18 | 22 | {%- if parameter.isOptional -%} |
19 | | - <span>?</span> |
| 23 | + <span class="docs-api-method-parameter-optional-marker">?</span> |
20 | 24 | {%- endif -%} |
21 | 25 | </p> |
22 | | - <p>{$ parameter.type $}</p> |
| 26 | + <code class="docs-api-method-parameter-type">{$ parameter.type $}</code> |
23 | 27 | </td> |
24 | | - <td> |
25 | | - {$ parameter.description $} |
| 28 | + <td class="docs-api-method-parameter-description-cell"> |
| 29 | + <p class="docs-api-method-parameter-description">{$ parameter.description $}</p> |
26 | 30 | </td> |
27 | 31 | </tr> |
28 | 32 | {% endfor %} |
29 | 33 | {%- endif -%} |
30 | 34 |
|
31 | 35 | {%- if method.showReturns -%} |
| 36 | + <thead> |
| 37 | + <tr class="docs-api-method-returns-header-row"> |
| 38 | + <th colspan="2" class="docs-api-method-returns-header-cell">Returns</th> |
| 39 | + </tr> |
| 40 | + </thead> |
32 | 41 | <tr> |
33 | | - <th colspan="2"> Returns</th> |
34 | | - </tr> |
35 | | - <tr> |
36 | | - <td>{$ method.returnType $}</td> |
37 | | - <td>{$ method.returns.description $}</td> |
| 42 | + <td class="docs-api-method-returns-type-cell"> |
| 43 | + <code class="docs-api-method-returns-type">{$ method.returnType $}</code> |
| 44 | + </td> |
| 45 | + <td class="docs-api-method-returns-description-cell"> |
| 46 | + <p class="docs-api-method-returns-description">{$ method.returns.description $}</p> |
| 47 | + </td> |
38 | 48 | </tr> |
39 | 49 | {%- endif -%} |
40 | 50 | </table> |
0 commit comments