SerializerAPI.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Interface: SerializerAPI</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">Interface: SerializerAPI</h1>
  17. <section>
  18. <header>
  19. <h2>SerializerAPI</h2>
  20. <div class="class-description">API class for the Dashboard Serializer feature, which allows the generation of a JS object representing the dashboard.</div>
  21. </header>
  22. <article>
  23. <div class="container-overview">
  24. <dl class="details">
  25. </dl>
  26. <h3>Example</h3>
  27. <pre class="prettyprint"><code>dashboard.getFeature('Serializer')</code></pre>
  28. </div>
  29. <h3 class="subsection-title">Methods</h3>
  30. <h4 class="name" id="toJSON"><span class="type-signature"></span>toJSON<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {object}</span></h4>
  31. <div class="description">
  32. Calling this method builds and return a JS object representing the current dashboard.
  33. If given a list of content IDs, a minimum dashboard spec (containing the specified IDs) will be returned.
  34. </div>
  35. <h5>Parameters:</h5>
  36. <table class="params">
  37. <thead>
  38. <tr>
  39. <th>Name</th>
  40. <th>Type</th>
  41. <th>Attributes</th>
  42. <th class="last">Description</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr>
  47. <td class="name"><code>options</code></td>
  48. <td class="type">
  49. <span class="param-type">Object</span>
  50. </td>
  51. <td class="attributes">
  52. &lt;optional><br>
  53. </td>
  54. <td class="description last">Options used to generate a dashboard spec.
  55. <h6>Properties</h6>
  56. <table class="params">
  57. <thead>
  58. <tr>
  59. <th>Name</th>
  60. <th>Type</th>
  61. <th class="last">Description</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <tr>
  66. <td class="name"><code>contentIds</code></td>
  67. <td class="type">
  68. <span class="param-type">Array</span>
  69. </td>
  70. <td class="description last">List of content IDs</td>
  71. </tr>
  72. <tr>
  73. <td class="name"><code>dashboardFeatures</code></td>
  74. <td class="type">
  75. <span class="param-type">Array</span>
  76. </td>
  77. <td class="description last">List of dashboard features to include in the spec,
  78. include all features by default.</td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <dl class="details">
  87. </dl>
  88. <h5>Returns:</h5>
  89. <div class="param-desc">
  90. JS object representing the current dashboard
  91. </div>
  92. <dl>
  93. <dt>
  94. Type
  95. </dt>
  96. <dd>
  97. <span class="param-type">object</span>
  98. </dd>
  99. </dl>
  100. </article>
  101. </section>
  102. </div>
  103. <nav>
  104. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AppFactory.html">AppFactory</a></li></ul><h3>Interfaces</h3><ul><li><a href="CanvasAPI.html">CanvasAPI</a></li><li><a href="ContentAPI.html">ContentAPI</a></li><li><a href="ContentStoreAPI.html">ContentStoreAPI</a></li><li><a href="DashboardCoreAPI.html">DashboardCoreAPI</a></li><li><a href="DashboardPreferencesAPI.html">DashboardPreferencesAPI</a></li><li><a href="DashboardSettingsAPI.html">DashboardSettingsAPI</a></li><li><a href="PropertiesAPI.html">PropertiesAPI</a></li><li><a href="RendererAPI.html">RendererAPI</a></li><li><a href="SaveAPI.html">SaveAPI</a></li><li><a href="SerializerAPI.html">SerializerAPI</a></li><li><a href="StateAPI.html">StateAPI</a></li><li><a href="TransactionAPI.html">TransactionAPI</a></li><li><a href="UserProfileAPI.html">UserProfileAPI</a></li></ul>
  105. </nav>
  106. <br class="clear">
  107. <footer>
  108. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu May 05 2022 17:56:07 GMT+0000 (UTC)
  109. </footer>
  110. <script> prettyPrint(); </script>
  111. <script src="scripts/linenumber.js"> </script>
  112. </body>
  113. </html>