mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	
		
			
	
	
		
			603 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			603 lines
		
	
	
		
			8.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
|  | <!DOCTYPE html> | ||
|  | <html lang="en"> | ||
|  | <head> | ||
|  |     <meta charset="utf-8"> | ||
|  |     <title>JSDoc: Global</title> | ||
|  | 
 | ||
|  |     <script src="scripts/prettify/prettify.js"> </script> | ||
|  |     <script src="scripts/prettify/lang-css.js"> </script> | ||
|  |     <!--[if lt IE 9]>
 | ||
|  |       <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
|  |     <![endif]--> | ||
|  |     <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
|  |     <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
|  | </head> | ||
|  | 
 | ||
|  | <body> | ||
|  | 
 | ||
|  | <div id="main"> | ||
|  | 
 | ||
|  |     <h1 class="page-title">Global</h1> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | <section> | ||
|  | 
 | ||
|  | <header> | ||
|  |      | ||
|  |         <h2></h2> | ||
|  |          | ||
|  |      | ||
|  | </header> | ||
|  | 
 | ||
|  | <article> | ||
|  |     <div class="container-overview"> | ||
|  |      | ||
|  |          | ||
|  | 
 | ||
|  |          | ||
|  | 
 | ||
|  | 
 | ||
|  | <dl class="details"> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | </dl> | ||
|  | 
 | ||
|  | 
 | ||
|  |          | ||
|  |      | ||
|  |     </div> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  |         <h3 class="subsection-title">Type Definitions</h3> | ||
|  | 
 | ||
|  |          | ||
|  |                  | ||
|  | <h4 class="name" id="CreateNoteAttribute">CreateNoteAttribute</h4> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     <h5>Type:</h5> | ||
|  |     <ul> | ||
|  |         <li> | ||
|  |              | ||
|  | <span class="param-type">object</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |         </li> | ||
|  |     </ul> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     <h5 class="subsection-title">Properties:</h5> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  | <table class="props"> | ||
|  |     <thead> | ||
|  |     <tr> | ||
|  |          | ||
|  |         <th>Name</th> | ||
|  |          | ||
|  | 
 | ||
|  |         <th>Type</th> | ||
|  | 
 | ||
|  |          | ||
|  |         <th>Attributes</th> | ||
|  |          | ||
|  | 
 | ||
|  |          | ||
|  | 
 | ||
|  |         <th class="last">Description</th> | ||
|  |     </tr> | ||
|  |     </thead> | ||
|  | 
 | ||
|  |     <tbody> | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>type</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">string</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">attribute type - label, relation etc.</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>name</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">string</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">attribute name</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>value</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">string</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">attribute value</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  |     </tbody> | ||
|  | </table> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | <dl class="details"> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  |     <dt class="tag-source">Source:</dt> | ||
|  |     <dd class="tag-source"><ul class="dummy"><li> | ||
|  |         <a href="services_backend_script_api.js.html">services/backend_script_api.js</a>, <a href="services_backend_script_api.js.html#line144">line 144</a> | ||
|  |     </li></ul></dd> | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | </dl> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |                  | ||
|  | <h4 class="name" id="CreateNoteExtraOptions">CreateNoteExtraOptions</h4> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     <h5>Type:</h5> | ||
|  |     <ul> | ||
|  |         <li> | ||
|  |              | ||
|  | <span class="param-type">object</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |         </li> | ||
|  |     </ul> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     <h5 class="subsection-title">Properties:</h5> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  | <table class="props"> | ||
|  |     <thead> | ||
|  |     <tr> | ||
|  |          | ||
|  |         <th>Name</th> | ||
|  |          | ||
|  | 
 | ||
|  |         <th>Type</th> | ||
|  | 
 | ||
|  |          | ||
|  |         <th>Attributes</th> | ||
|  |          | ||
|  | 
 | ||
|  |          | ||
|  |         <th>Default</th> | ||
|  |          | ||
|  | 
 | ||
|  |         <th class="last">Description</th> | ||
|  |     </tr> | ||
|  |     </thead> | ||
|  | 
 | ||
|  |     <tbody> | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>json</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">boolean</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="default"> | ||
|  |                  | ||
|  |                     false | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">should the note be JSON</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>isProtected</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">boolean</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="default"> | ||
|  |                  | ||
|  |                     false | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">should the note be protected</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>type</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">string</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="default"> | ||
|  |                  | ||
|  |                     'text' | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">note type</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>mime</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">string</span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="default"> | ||
|  |                  | ||
|  |                     'text/html' | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">MIME type of the note</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |         <tr> | ||
|  |              | ||
|  |                 <td class="name"><code>attributes</code></td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="type"> | ||
|  |              | ||
|  |                  | ||
|  | <span class="param-type">Array.<<a href="global.html#CreateNoteAttribute">CreateNoteAttribute</a>></span> | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |             </td> | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="attributes"> | ||
|  |                  | ||
|  |                     <optional><br> | ||
|  |                  | ||
|  | 
 | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |              | ||
|  |                 <td class="default"> | ||
|  |                  | ||
|  |                     [] | ||
|  |                  | ||
|  |                 </td> | ||
|  |              | ||
|  | 
 | ||
|  |             <td class="description last">attributes to be created for this note</td> | ||
|  |         </tr> | ||
|  | 
 | ||
|  |      | ||
|  |     </tbody> | ||
|  | </table> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | <dl class="details"> | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  |     <dt class="tag-source">Source:</dt> | ||
|  |     <dd class="tag-source"><ul class="dummy"><li> | ||
|  |         <a href="services_backend_script_api.js.html">services/backend_script_api.js</a>, <a href="services_backend_script_api.js.html#line151">line 151</a> | ||
|  |     </li></ul></dd> | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | </dl> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |              | ||
|  |      | ||
|  | 
 | ||
|  |      | ||
|  | </article> | ||
|  | 
 | ||
|  | </section> | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | </div> | ||
|  | 
 | ||
|  | <nav> | ||
|  |     <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ApiToken.html">ApiToken</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="Entity.html">Entity</a></li><li><a href="Image.html">Image</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteImage.html">NoteImage</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3> | ||
|  | </nav> | ||
|  | 
 | ||
|  | <br class="clear"> | ||
|  | 
 | ||
|  | <footer> | ||
|  |     Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Aug 29 2018 20:44:06 GMT+0200 (CEST) | ||
|  | </footer> | ||
|  | 
 | ||
|  | <script> prettyPrint(); </script> | ||
|  | <script src="scripts/linenumber.js"> </script> | ||
|  | </body> | ||
|  | </html> |