demo_module_initialData.js.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Source: demo_module/initialData.js</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Source: demo_module/initialData.js</h1>
  17. <section>
  18. <article>
  19. <pre class="prettyprint source linenums"><code>/** @module */
  20. /**
  21. * initial data for the demo module
  22. **/
  23. /**
  24. * Initial values for the primary data of the module.
  25. * It could come from a database, file or any other asynchronous source.
  26. * Include secondary joins directly as objects into the primary, if they
  27. * are exclusive to the one primary. This makes access and version tagging
  28. * easier.
  29. **/
  30. export const primary = [{
  31. id: 'primary-1',
  32. name: 'String1',
  33. active: true,
  34. secondary: [{
  35. id: 'id1',
  36. name: 'secondary-1'
  37. }]
  38. }, {
  39. id: 'primary-2',
  40. name: 'String2',
  41. active: false,
  42. secondary: [{
  43. id: 'id2',
  44. name: 'secondary-2'
  45. }, {
  46. id: 'id3',
  47. name: 'secondary-3'
  48. }]
  49. }]
  50. </code></pre>
  51. </article>
  52. </section>
  53. </div>
  54. <nav>
  55. <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-AutoMate.html">AutoMate</a></li><li><a href="module-demo_module.html">demo_module</a></li><li><a href="module-demo_module_components_index.html">demo_module/components/index</a></li><li><a href="module-demo_module_constants.html">demo_module/constants</a></li><li><a href="module-demo_module_initialData.html">demo_module/initialData</a></li><li><a href="module-demo_module_state.html">demo_module/state</a></li><li><a href="module-project.html">project</a></li><li><a href="module-project_components.html">project/components</a></li><li><a href="module-project_state.html">project/state</a></li><li><a href="module-registermap.html">registermap</a></li></ul>
  56. </nav>
  57. <br class="clear">
  58. <footer>
  59. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Tue Mar 14 2017 18:34:23 GMT+0100 (W. Europe Standard Time)
  60. </footer>
  61. <script> prettyPrint(); </script>
  62. <script src="scripts/linenumber.js"> </script>
  63. </body>
  64. </html>