-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
tui.ejs
102 lines (95 loc) · 3.78 KB
/
tui.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
</p></div></div> <%# Prematurely close JSDoc default template tags %>
<style>
.container-overview {
display: none;
}
.main section article table td.name,
.main section article table td.type,
.main section article table td.attributes,
.main section article table td.default {
max-width: none;
}
</style>
<% if(props.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<div class="container-params">
<table class="params" data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody><% props.forEach(function(prop) { %><tr>
<td class="name"><code><%- prop.name %></code></td>
<td class="type"><span class="param-type"><%- renderType(prop.type) %></span></td>
<td class="description"><%- typeof prop.defaultvalue === 'undefined' ? '-' : `<code>${prop.defaultvalue}</code>` %></td>
<td class="description"><%- prop.optional ? 'No' : '<b>Yes</b>' %></td>
<td class="description last"><%- typeof prop.description === 'undefined' ? '-' : prop.description %></td>
</tr><% }) %></tbody>
</table>
</div>
<% } %>
<% if(data.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-data">Data</h3>
<div class="container-params">
<table class="params" data-jsdoc-vuejs="table-data">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody><% data.forEach(function(d) { %><tr>
<td class="name"><code><%- d.name %></code></td>
<td class="type"><span class="param-type"><%- renderType(d.type) %></span></td>
<td class="description"><%- typeof d.defaultvalue === 'undefined' ? '-' : `<code>${d.defaultvalue}</code>` %></td>
<td class="description last"><%- typeof d.description === 'undefined' ? '-' : d.description %></td>
</tr><% }) %></tbody>
</table>
</div>
<% } %>
<% if(computed.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-computed">Computed</h3>
<div class="container-params">
<table class="params" data-jsdoc-vuejs="table-computed">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody><% computed.forEach(function(c) { %><tr>
<td class="name"><code><%- c.name %></code></td>
<td class="type"><span class="param-type"><%- renderType(c.type) %></span></td>
<td class="description last"><%- typeof c.description === 'undefined' ? '-' : c.description %></td>
</tr><% }) %></tbody>
</table>
</div>
<% } %>
<% if(event.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-event">Events</h3>
<div class="container-params">
<table class="params" data-jsdoc-vuejs="table-event">
<thead>
<tr>
<th>Name</th>
<th>Payload Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody><% event.forEach(function(c) { %><tr>
<td class="name"><code><%- c.name %></code></td>
<td class="type"><span class="param-type"><%- renderType(c.type) %></span></td>
<td class="description last"><%- typeof c.description === 'undefined' ? '-' : c.description %></td>
</tr><% }) %></tbody>
</table>
</div>
<% } %>
<div class="container-overview"><div><p> <%# Re-open JSDoc template tags %>