class.tmpl.partial 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
  2. {{>partials/class.header}}
  3. {{#children}}
  4. <h3 id="{{id}}">{{>partials/classSubtitle}}</h3>
  5. {{#children}}
  6. {{^_disableContribution}}
  7. {{#docurl}}
  8. <span class="small pull-right mobile-hide">
  9. <span class="divider">|</span>
  10. <a href="{{docurl}}">{{__global.improveThisDoc}}</a>
  11. </span>{{/docurl}}
  12. {{#sourceurl}}
  13. <span class="small pull-right mobile-hide">
  14. <a href="{{sourceurl}}">{{__global.viewSource}}</a>
  15. </span>{{/sourceurl}}
  16. {{/_disableContribution}}
  17. {{#overload}}
  18. <a id="{{id}}" data-uid="{{uid}}"></a>
  19. {{/overload}}
  20. <h4 id="{{id}}" data-uid="{{uid}}">{{name.0.value}}</h4>
  21. <div class="markdown level1 summary">{{{summary}}}</div>
  22. <div class="markdown level1 conceptual">{{{conceptual}}}</div>
  23. <h5 class="decalaration">{{__global.declaration}}</h5>
  24. {{#syntax}}
  25. <div class="codewrapper">
  26. <pre><code class="lang-{{_lang}} hljs">{{syntax.content.0.value}}</code></pre>
  27. </div>
  28. {{#parameters.0}}
  29. <h5 class="parameters">{{__global.parameters}}</h5>
  30. <table class="table table-bordered table-striped table-condensed">
  31. <thead>
  32. <tr>
  33. <th>{{__global.type}}</th>
  34. <th>{{__global.name}}</th>
  35. <th>{{__global.description}}</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. {{/parameters.0}}
  40. {{#parameters}}
  41. <tr>
  42. <td>{{{type.specName.0.value}}}</td>
  43. <td><span class="parametername">{{{id}}}</span></td>
  44. <td>{{{description}}}</td>
  45. </tr>
  46. {{/parameters}}
  47. {{#parameters.0}}
  48. </tbody>
  49. </table>
  50. {{/parameters.0}}
  51. {{#return}}
  52. <h5 class="returns">{{__global.returns}}</h5>
  53. <table class="table table-bordered table-striped table-condensed">
  54. <thead>
  55. <tr>
  56. <th>{{__global.type}}</th>
  57. <th>{{__global.description}}</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr>
  62. <td>{{{type.specName.0.value}}}</td>
  63. <td>{{{description}}}</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. {{/return}}
  68. {{#typeParameters.0}}
  69. <h5 class="typeParameters">{{__global.typeParameters}}</h5>
  70. <table class="table table-bordered table-striped table-condensed">
  71. <thead>
  72. <tr>
  73. <th>{{__global.name}}</th>
  74. <th>{{__global.description}}</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. {{/typeParameters.0}}
  79. {{#typeParameters}}
  80. <tr>
  81. <td><span class="parametername">{{{id}}}</span></td>
  82. <td>{{{description}}}</td>
  83. </tr>
  84. {{/typeParameters}}
  85. {{#typeParameters.0}}
  86. </tbody>
  87. </table>
  88. {{/typeParameters.0}}
  89. {{#fieldValue}}
  90. <h5 class="fieldValue">{{__global.fieldValue}}</h5>
  91. <table class="table table-bordered table-striped table-condensed">
  92. <thead>
  93. <tr>
  94. <th>{{__global.type}}</th>
  95. <th>{{__global.description}}</th>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. <tr>
  100. <td>{{{type.specName.0.value}}}</td>
  101. <td>{{{description}}}</td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. {{/fieldValue}}
  106. {{#propertyValue}}
  107. <h5 class="propertyValue">{{__global.propertyValue}}</h5>
  108. <table class="table table-bordered table-striped table-condensed">
  109. <thead>
  110. <tr>
  111. <th>{{__global.type}}</th>
  112. <th>{{__global.description}}</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td>{{{type.specName.0.value}}}</td>
  118. <td>{{{description}}}</td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. {{/propertyValue}}
  123. {{#eventType}}
  124. <h5 class="eventType">{{__global.eventType}}</h5>
  125. <table class="table table-bordered table-striped table-condensed">
  126. <thead>
  127. <tr>
  128. <th>{{__global.type}}</th>
  129. <th>{{__global.description}}</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td>{{{type.specName.0.value}}}</td>
  135. <td>{{{description}}}</td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. {{/eventType}}
  140. {{/syntax}}
  141. {{#overridden}}
  142. <h5 class="overrides">{{__global.overrides}}</h5>
  143. <div><xref uid="{{uid}}" altProperty="fullName" displayProperty="nameWithType"/></div>
  144. {{/overridden}}
  145. {{#exceptions.0}}
  146. <h5 class="exceptions">{{__global.exceptions}}</h5>
  147. <table class="table table-bordered table-striped table-condensed">
  148. <thead>
  149. <tr>
  150. <th>{{__global.type}}</th>
  151. <th>{{__global.condition}}</th>
  152. </tr>
  153. </thead>
  154. <tbody>
  155. {{/exceptions.0}}
  156. {{#exceptions}}
  157. <tr>
  158. <td>{{{type.specName.0.value}}}</td>
  159. <td>{{{description}}}</td>
  160. </tr>
  161. {{/exceptions}}
  162. {{#exceptions.0}}
  163. </tbody>
  164. </table>
  165. {{/exceptions.0}}
  166. {{#seealso.0}}
  167. <h5 id="{{id}}_seealso">{{__global.seealso}}</h5>
  168. <div class="seealso">
  169. {{/seealso.0}}
  170. {{#seealso}}
  171. {{#isCref}}
  172. <div>{{{type.specName.0.value}}}</div>
  173. {{/isCref}}
  174. {{^isCref}}
  175. <div>{{{url}}}</div>
  176. {{/isCref}}
  177. {{/seealso}}
  178. {{#seealso.0}}
  179. </div>
  180. {{/seealso.0}}
  181. {{/children}}
  182. {{/children}}
  183. {{#implements.0}}
  184. <h3 id="implements">{{__global.implements}}</h3>
  185. {{/implements.0}}
  186. {{#implements}}
  187. <div>
  188. {{#definition}}
  189. <xref uid="{{definition}}" altProperty="fullName" displayProperty="nameWithType"/>
  190. {{/definition}}
  191. {{^definition}}
  192. <xref uid="{{uid}}" altProperty="fullName" displayProperty="nameWithType"/>
  193. {{/definition}}
  194. </div>
  195. {{/implements}}
  196. {{#extensionMethods.0}}
  197. <h3 id="extensionmethods">{{__global.extensionMethods}}</h3>
  198. {{/extensionMethods.0}}
  199. {{#extensionMethods}}
  200. <div>
  201. {{#definition}}
  202. <xref uid="{{definition}}" altProperty="fullName" displayProperty="nameWithType"/>
  203. {{/definition}}
  204. {{^definition}}
  205. <xref uid="{{uid}}" altProperty="fullName" displayProperty="nameWithType"/>
  206. {{/definition}}
  207. </div>
  208. {{/extensionMethods}}
  209. {{#seealso.0}}
  210. <h3 id="seealso">{{__global.seealso}}</h3>
  211. <div class="seealso">
  212. {{/seealso.0}}
  213. {{#seealso}}
  214. {{#isCref}}
  215. <div>{{{type.specName.0.value}}}</div>
  216. {{/isCref}}
  217. {{^isCref}}
  218. <div>{{{url}}}</div>
  219. {{/isCref}}
  220. {{/seealso}}
  221. {{#seealso.0}}
  222. </div>
  223. {{/seealso.0}}