Skip to content

Commit 313d0c4

Browse files
sdahlbaclocks
authored andcommitted
display props if we have some
1 parent 7c4d335 commit 313d0c4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

app/styles/components/_class-field-desc.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ h3 .access{
5050
dd {
5151
display: inline-block;
5252
}
53+
dl.parameters {
54+
margin-left: 24px;
55+
margin-block-start: 0;
56+
}
5357
}
5458

5559
.method, .property, .event {

app/templates/components/class-field-description.hbs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@
5555
<dt>{{param.name}}</dt>
5656
<dd class="parameter-type">{{param.type}}</dd>
5757
<dd>{{param.description}}</dd>
58+
{{#if param.props}}
59+
<dl class="parameters">
60+
{{#each param.props as |prop|}}
61+
<div class="prop">
62+
<dt>{{prop.name}}</dt>
63+
<dd class="parameter-type">{{prop.type}}</dd>
64+
<dd>{{prop.description}}</dd>
65+
</div>
66+
{{/each}}
67+
</dl>
68+
{{/if}}
5869
</div>
5970
{{/each}}
6071
{{#if this.field.return}}

0 commit comments

Comments
 (0)