Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit ef90aad

Browse files
committed
Merge pull request #28 from jeffposnick/master
Reformatted the type info displayed for method and event parameters
2 parents edcdf00 + 199ac26 commit ef90aad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

elements/core-doc-page.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h3 id="{{data.name}}.attributes">Attributes</h3>
6565
</div>
6666
<div class="details-info" flex three>
6767
<p layout horizontal center justified>
68-
<code>{{attribute.type}}</code><span class="default" hidden?="{{!attribute.default}}">default: <code>{{attribute.default}}</code></span>
68+
<code>&lt;<em>{{attribute.type}}</em>&gt;</code><span class="default" hidden?="{{!attribute.default}}">default: <code>{{attribute.default}}</code></span>
6969
</p>
7070
<marked-element text="{{attribute.description}}"></marked-element>
7171
</div>
@@ -84,7 +84,7 @@ <h3 id="{{data.name}}.properties">Properties</h3>
8484
</div>
8585
<div class="details-info" flex three>
8686
<p layout horizontal center justified>
87-
<code>{{property.type}}</code><span class="default" hidden?="{{!property.default}}">default: <code>{{property.default}}</code></span>
87+
<code>&lt;<em>{{property.type}}</em>&gt;</code><span class="default" hidden?="{{!property.default}}">default: <code>{{property.default}}</code></span>
8888
</p>
8989
<marked-element text="{{property.description}}"></marked-element>
9090
</div>
@@ -107,7 +107,7 @@ <h3 id="{{data.name}}.events">Events</h3>
107107
<div class="params">
108108
<p>Event details:</p>
109109
<template repeat="{{param in event.params}}">
110-
<p><code>{{param.name}}</code><span> <code>( {{param.type}} )</code></span></p>
110+
<p><code>&lt;<em>{{param.type}}</em>&gt; {{param.name}}</code></p>
111111
<p><span>{{param.description}}</span></p>
112112
</template>
113113
</div>
@@ -132,7 +132,7 @@ <h3 id="{{data.name}}.methods">Methods</h3>
132132
<div class="params">
133133
<p>Method parameters:</p>
134134
<template repeat="{{param in method.params}}">
135-
<p><code>{{param.name}}</code><span> <code>( {{param.type}} )</code></span></p>
135+
<p><code>&lt;<em>{{param.type}}</em>&gt; {{param.name}}</code></p>
136136
<p><span>{{param.description}}</span></p>
137137
</template>
138138
</div>

0 commit comments

Comments
 (0)