class.tmpl.partial 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. <div class="xk-{{id}}-wrapper">
  5. <h2 id="{{id}}">{{>partials/classSubtitle}}</h2>
  6. <table class="table table-bordered table-striped table-condensed">
  7. <thead>
  8. <tr>
  9. <th colspan="2">{{__global.name}}</th>
  10. <th>{{__global.description}}</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {{#children}}
  15. <tr>
  16. <td class="xk-icon-column">
  17. <span class="xk-{{type}}-icon"></span>
  18. </td>
  19. <td><a href="#{{id}}">{{name.0.value}}</a></td>
  20. <td>{{{summary}}}</td>
  21. </tr>
  22. {{/children}}
  23. </tbody>
  24. </table>
  25. {{#children}}
  26. {{^_disableContribution}}
  27. {{#sourceurl}}
  28. <span class="small pull-right mobile-hide">
  29. <a href="{{sourceurl}}">{{__global.viewSource}}</a>
  30. </span>{{/sourceurl}}
  31. {{/_disableContribution}}
  32. <h3 id="{{id}}" data-uid="{{uid}}" class="xk-bordered-title">{{name.0.value}}</h3>
  33. <div class="markdown level1 summary">{{{summary}}}</div>
  34. <div class="markdown level1 conceptual">{{{conceptual}}}</div>
  35. {{#syntax}}
  36. <div class="codewrapper">
  37. <pre><code class="lang-{{_lang}} hljs">{{syntax.content.0.value}}</code></pre>
  38. </div>
  39. <div class="xk-{{type}}">
  40. {{#fieldValue}}
  41. <div class="xk-fieldValue">
  42. <i>Type: </i>{{{type.specName.0.value}}}
  43. <p>{{{description}}}</p>
  44. </div>
  45. {{/fieldValue}}
  46. {{#propertyValue}}
  47. <div class="xk-propertyValue">
  48. <i>Type: </i>{{{type.specName.0.value}}}
  49. <p>{{{description}}}</p>
  50. </div>
  51. {{/propertyValue}}
  52. </div>
  53. {{#remarks}}
  54. <div class="markdown level1 remarks">{{{remarks}}}</div>
  55. {{/remarks}}
  56. {{#parameters.0}}
  57. <h4 class="parameters">{{__global.parameters}}</h4>
  58. <table class="table table-bordered table-striped table-condensed">
  59. <thead>
  60. <tr>
  61. <th>{{__global.type}}</th>
  62. <th>{{__global.name}}</th>
  63. <th>{{__global.description}}</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. {{/parameters.0}}
  68. {{#parameters}}
  69. <tr>
  70. <td>{{{type.specName.0.value}}}</td>
  71. <td><em>{{{id}}}</em></td>
  72. <td>{{{description}}}</td>
  73. </tr>
  74. {{/parameters}}
  75. {{#parameters.0}}
  76. </tbody>
  77. </table>
  78. {{/parameters.0}}
  79. {{#syntax.return}}
  80. <h4 class="returns">{{__global.returns}}</h4>
  81. <div class="xk-returns">
  82. <i>Type: </i>{{{type.specName.0.value}}}
  83. <p>{{{description}}}</p>
  84. </div>
  85. {{/syntax.return}}
  86. {{#syntax.typeParameters.0}}
  87. <h4 class="typeParameters">{{__global.typeParameters}}</h4>
  88. <table class="table table-bordered table-striped table-condensed">
  89. <thead>
  90. <tr>
  91. <th>{{__global.name}}</th>
  92. <th>{{__global.description}}</th>
  93. </tr>
  94. </thead>
  95. <tbody>
  96. {{/syntax.typeParameters.0}}
  97. {{#syntax.typeParameters}}
  98. <tr>
  99. <td><em>{{{id}}}</em></td>
  100. <td>{{{description}}}</td>
  101. </tr>
  102. {{/syntax.typeParameters}}
  103. {{#syntax.typeParameters.0}}
  104. </tbody>
  105. </table>
  106. {{/syntax.typeParameters.0}}
  107. {{#eventType}}
  108. <h5 class="eventType xk-hidden-table">{{__global.eventType}}</h5>
  109. <table class="table table-bordered table-striped table-condensed xk-hidden-table">
  110. <thead>
  111. <tr>
  112. <th colspan="2">{{__global.type}}</th>
  113. <th>{{__global.description}}</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <tr>
  118. <td class="xk-icon-column">
  119. <span class="xk-events-icon"></span>
  120. </td>
  121. <td>{{{type.specName.0.value}}}</td>
  122. <td>{{{description}}}</td>
  123. </tr>
  124. </tbody>
  125. </table>
  126. {{/eventType}}
  127. {{/syntax}}
  128. {{#exceptions.0}}
  129. <h4 class="exceptions">{{__global.exceptions}}</h4>
  130. <table class="table table-bordered table-striped table-condensed">
  131. <thead>
  132. <tr>
  133. <th>{{__global.type}}</th>
  134. <th>{{__global.condition}}</th>
  135. </tr>
  136. </thead>
  137. <tbody>
  138. {{/exceptions.0}}
  139. {{#exceptions}}
  140. <tr>
  141. <td>{{{type.specName.0.value}}}</td>
  142. <td>{{{description}}}</td>
  143. </tr>
  144. {{/exceptions}}
  145. {{#exceptions.0}}
  146. </tbody>
  147. </table>
  148. {{/exceptions.0}}
  149. {{/children}}
  150. </div>
  151. {{/children}}