TabsPage.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <!doctype html>
  2. <html class="no-js" lang="">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title>time1 documentation</title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
  10. <link rel="stylesheet" href="../styles/style.css">
  11. <link rel="stylesheet" href="../styles/dark.css">
  12. </head>
  13. <body>
  14. <script>
  15. // Blocking script to avoid flickering dark mode
  16. // Dark mode toggle button
  17. var useDark = window.matchMedia('(prefers-color-scheme: dark)');
  18. var darkModeState = useDark.matches;
  19. var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
  20. var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
  21. var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
  22. function checkToggle(check) {
  23. for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
  24. $darkModeToggleSwitchers[i].checked = check;
  25. }
  26. }
  27. function toggleDarkMode(state) {
  28. if (window.localStorage) {
  29. localStorage.setItem('compodoc_darkmode-state', state);
  30. }
  31. checkToggle(state);
  32. const hasClass = document.body.classList.contains('dark');
  33. if (state) {
  34. for (var i = 0; i < $darkModeToggles.length; i++) {
  35. $darkModeToggles[i].classList.add('dark');
  36. }
  37. if (!hasClass) {
  38. document.body.classList.add('dark');
  39. }
  40. } else {
  41. for (var i = 0; i < $darkModeToggles.length; i++) {
  42. $darkModeToggles[i].classList.remove('dark');
  43. }
  44. if (hasClass) {
  45. document.body.classList.remove('dark');
  46. }
  47. }
  48. }
  49. useDark.addEventListener('change', function (evt) {
  50. toggleDarkMode(evt.matches);
  51. });
  52. if (darkModeStateLocal) {
  53. darkModeState = darkModeStateLocal === 'true';
  54. }
  55. toggleDarkMode(darkModeState);
  56. </script>
  57. <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
  58. <div class="d-flex">
  59. <a href="../" class="navbar-brand">time1 documentation</a>
  60. <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
  61. </div>
  62. </div>
  63. <div class="xs-menu menu" id="mobile-menu">
  64. <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
  65. </div>
  66. <div class="container-fluid main">
  67. <div class="row main">
  68. <div class="d-none d-md-block menu">
  69. <compodoc-menu mode="normal"></compodoc-menu>
  70. </div>
  71. <!-- START CONTENT -->
  72. <div class="content component">
  73. <div class="content-data">
  74. <ol class="breadcrumb">
  75. <li class="breadcrumb-item">Components</li>
  76. <li class="breadcrumb-item"
  77. >
  78. TabsPage</li>
  79. </ol>
  80. <ul class="nav nav-tabs" role="tablist">
  81. <li class="nav-item">
  82. <a href="#info" class="nav-link active"
  83. role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
  84. </li>
  85. <li class="nav-item">
  86. <a href="#source" class="nav-link"
  87. role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
  88. </li>
  89. <li class="nav-item">
  90. <a href="#templateData" class="nav-link"
  91. role="tab" id="templateData-tab" data-bs-toggle="tab" data-link="template">Template</a>
  92. </li>
  93. <li class="nav-item">
  94. <a href="#styleData" class="nav-link"
  95. role="tab" id="styleData-tab" data-bs-toggle="tab" data-link="style">Styles</a>
  96. </li>
  97. <li class="nav-item">
  98. <a href="#tree" class="nav-link"
  99. role="tab" id="tree-tab" data-bs-toggle="tab" data-link="dom-tree">DOM Tree</a>
  100. </li>
  101. </ul>
  102. <div class="tab-content">
  103. <div class="tab-pane fade active in" id="info"><p class="comment">
  104. <h3>File</h3>
  105. </p>
  106. <p class="comment">
  107. <code>src/app/tabs/tabs.page.ts</code>
  108. </p>
  109. <section data-compodoc="block-metadata">
  110. <h3>Metadata</h3>
  111. <table class="table table-sm table-hover metadata">
  112. <tbody>
  113. <tr>
  114. <td class="col-md-3">selector</td>
  115. <td class="col-md-9"><code>app-tabs</code></td>
  116. </tr>
  117. <tr>
  118. <td class="col-md-3">styleUrls</td>
  119. <td class="col-md-9"><code>tabs.page.scss</code></td>
  120. </tr>
  121. <tr>
  122. <td class="col-md-3">templateUrl</td>
  123. <td class="col-md-9"><code>tabs.page.html</code></td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </section>
  128. <section data-compodoc="block-constructor">
  129. <h3 id="constructor">Constructor</h3>
  130. <table class="table table-sm table-bordered">
  131. <tbody>
  132. <tr>
  133. <td class="col-md-4">
  134. <code>constructor()</code>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="col-md-4">
  139. <div class="io-line">Defined in <a href="" data-line="8" class="link-to-prism">src/app/tabs/tabs.page.ts:8</a></div>
  140. </td>
  141. </tr>
  142. </tbody>
  143. </table>
  144. </section>
  145. </div>
  146. <div class="tab-pane fade tab-source-code" id="source">
  147. <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &#x27;@angular/core&#x27;;
  148. @Component({
  149. selector: &#x27;app-tabs&#x27;,
  150. templateUrl: &#x27;tabs.page.html&#x27;,
  151. styleUrls: [&#x27;tabs.page.scss&#x27;]
  152. })
  153. export class TabsPage {
  154. constructor() {}
  155. }
  156. </code></pre>
  157. </div>
  158. <div class="tab-pane fade " id="templateData">
  159. <pre class="line-numbers"><code class="language-html">&lt;ion-tabs&gt;
  160. &lt;ion-tab-bar slot&#x3D;&quot;bottom&quot;&gt;
  161. &lt;ion-tab-button tab&#x3D;&quot;home&quot;&gt;
  162. &lt;ion-icon name&#x3D;&quot;home&quot;&gt;&lt;/ion-icon&gt;
  163. &lt;ion-label&gt;首页&lt;/ion-label&gt;
  164. &lt;/ion-tab-button&gt;
  165. &lt;ion-tab-button tab&#x3D;&quot;tasks&quot;&gt;
  166. &lt;ion-icon name&#x3D;&quot;clipboard&quot;&gt;&lt;/ion-icon&gt;
  167. &lt;ion-label&gt;任务&lt;/ion-label&gt;
  168. &lt;/ion-tab-button&gt;
  169. &lt;ion-tab-button tab&#x3D;&quot;services&quot;&gt;
  170. &lt;ion-icon name&#x3D;&quot;construct&quot;&gt;&lt;/ion-icon&gt;
  171. &lt;ion-label&gt;服务&lt;/ion-label&gt;
  172. &lt;/ion-tab-button&gt;
  173. &lt;ion-tab-button tab&#x3D;&quot;profile&quot;&gt;
  174. &lt;ion-icon name&#x3D;&quot;person&quot;&gt;&lt;/ion-icon&gt;
  175. &lt;ion-label&gt;我的&lt;/ion-label&gt;
  176. &lt;/ion-tab-button&gt;
  177. &lt;/ion-tab-bar&gt;
  178. &lt;/ion-tabs&gt;
  179. </code></pre>
  180. </div>
  181. <div class="tab-pane fade " id="styleData">
  182. <p class="comment">
  183. <code>tabs.page.scss</code>
  184. </p>
  185. <pre class="line-numbers"><code class="language-scss">
  186. </code></pre>
  187. </div>
  188. <div class="tab-pane fade " id="tree">
  189. <div id="tree-container"></div>
  190. <div class="tree-legend">
  191. <div class="title">
  192. <b>Legend</b>
  193. </div>
  194. <div>
  195. <div class="color htmlelement"></div><span>Html element</span>
  196. </div>
  197. <div>
  198. <div class="color component"></div><span>Component</span>
  199. </div>
  200. <div>
  201. <div class="color directive"></div><span>Html element with directive</span>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <script src="../js/libs/vis.min.js"></script>
  207. <script src="../js/libs/htmlparser.js"></script>
  208. <script src="../js/libs/deep-iterator.js"></script>
  209. <script>
  210. var COMPONENT_TEMPLATE = '<div><ion-tabs> <ion-tab-bar slot="bottom"> <ion-tab-button tab="home"> <ion-icon name="home"></ion-icon> <ion-label>首页</ion-label> </ion-tab-button> <ion-tab-button tab="tasks"> <ion-icon name="clipboard"></ion-icon> <ion-label>任务</ion-label> </ion-tab-button> <ion-tab-button tab="services"> <ion-icon name="construct"></ion-icon> <ion-label>服务</ion-label> </ion-tab-button> <ion-tab-button tab="profile"> <ion-icon name="person"></ion-icon> <ion-label>我的</ion-label> </ion-tab-button> </ion-tab-bar></ion-tabs></div>'
  211. var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'ExploreContainerComponent', 'selector': 'app-explore-container'},{'name': 'HomePage', 'selector': 'app-home'},{'name': 'ProfilePage', 'selector': 'app-profile'},{'name': 'ServicesPage', 'selector': 'app-services'},{'name': 'TabsPage', 'selector': 'app-tabs'},{'name': 'TasksPage', 'selector': 'app-tasks'}];
  212. var DIRECTIVES = [];
  213. var ACTUAL_COMPONENT = {'name': 'TabsPage'};
  214. </script>
  215. <script src="../js/tree.js"></script>
  216. </div><div class="search-results">
  217. <div class="has-results">
  218. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  219. <ul class="search-results-list"></ul>
  220. </div>
  221. <div class="no-results">
  222. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  223. </div>
  224. </div>
  225. </div>
  226. <!-- END CONTENT -->
  227. </div>
  228. </div>
  229. <label class="dark-mode-switch">
  230. <input type="checkbox">
  231. <span class="slider">
  232. <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
  233. <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
  234. </svg>
  235. </span>
  236. </label>
  237. <script>
  238. var COMPODOC_CURRENT_PAGE_DEPTH = 1;
  239. var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
  240. var COMPODOC_CURRENT_PAGE_URL = 'TabsPage.html';
  241. var MAX_SEARCH_RESULTS = 15;
  242. </script>
  243. <script>
  244. $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
  245. checkToggle(darkModeState);
  246. if ($darkModeToggleSwitchers.length > 0) {
  247. for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
  248. $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
  249. darkModeState = !darkModeState;
  250. toggleDarkMode(darkModeState);
  251. });
  252. }
  253. }
  254. </script>
  255. <script src="../js/libs/custom-elements.min.js"></script>
  256. <script src="../js/libs/lit-html.js"></script>
  257. <script src="../js/menu-wc.js" defer></script>
  258. <script nomodule src="../js/menu-wc_es5.js" defer></script>
  259. <script src="../js/libs/bootstrap-native.js"></script>
  260. <script src="../js/libs/es6-shim.min.js"></script>
  261. <script src="../js/libs/EventDispatcher.js"></script>
  262. <script src="../js/libs/promise.min.js"></script>
  263. <script src="../js/libs/zepto.min.js"></script>
  264. <script src="../js/compodoc.js"></script>
  265. <script src="../js/tabs.js"></script>
  266. <script src="../js/menu.js"></script>
  267. <script src="../js/libs/clipboard.min.js"></script>
  268. <script src="../js/libs/prism.js"></script>
  269. <script src="../js/sourceCode.js"></script>
  270. <script src="../js/search/search.js"></script>
  271. <script src="../js/search/lunr.min.js"></script>
  272. <script src="../js/search/search-lunr.js"></script>
  273. <script src="../js/search/search_index.js"></script>
  274. <script src="../js/lazy-load-graphs.js"></script>
  275. </body>
  276. </html>