trilium/docs/backend_api/global.html

624 lines
8.1 KiB
HTML
Raw Normal View History

2018-08-30 02:44:35 +08:00
<!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">
&lt;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>
2019-04-23 00:08:33 +08:00
<a href="services_backend_script_api.js.html">services/backend_script_api.js</a>, <a href="services_backend_script_api.js.html#line173">line 173</a>
2018-08-30 02:44:35 +08:00
</li></ul></dd>
</dl>
2019-11-19 06:01:31 +08:00
<h4 class="name" id="CreateNoteParams">CreateNoteParams</h4>
2018-08-30 02:44:35 +08:00
<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 class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2019-11-26 05:45:09 +08:00
<td class="name"><code>parentNoteId</code></td>
2018-08-30 02:44:35 +08:00
<td class="type">
2019-11-26 05:45:09 +08:00
<span class="param-type">string</span>
2018-08-30 02:44:35 +08:00
</td>
2019-11-26 05:45:09 +08:00
<td class="description last">MANDATORY</td>
2018-08-30 02:44:35 +08:00
</tr>
<tr>
2019-11-26 05:45:09 +08:00
<td class="name"><code>title</code></td>
2018-08-30 02:44:35 +08:00
<td class="type">
2019-11-26 05:45:09 +08:00
<span class="param-type">string</span>
2018-08-30 02:44:35 +08:00
</td>
2019-11-26 05:45:09 +08:00
<td class="description last">MANDATORY</td>
</tr>
<tr>
<td class="name"><code>content</code></td>
<td class="type">
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<span class="param-type">string</span>
|
<span class="param-type">buffer</span>
</td>
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<td class="description last">MANDATORY</td>
2018-08-30 02:44:35 +08:00
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
2019-11-26 05:45:09 +08:00
<td class="description last">text, code, file, image, search, book, relation-map - MANDATORY</td>
</tr>
<tr>
<td class="name"><code>mime</code></td>
<td class="type">
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<span class="param-type">string</span>
</td>
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<td class="description last">value is derived from default mimes for type</td>
2018-08-30 02:44:35 +08:00
</tr>
<tr>
2019-11-26 05:45:09 +08:00
<td class="name"><code>isProtected</code></td>
2018-08-30 02:44:35 +08:00
<td class="type">
2019-11-26 05:45:09 +08:00
<span class="param-type">boolean</span>
2018-08-30 02:44:35 +08:00
</td>
2019-11-26 05:45:09 +08:00
<td class="description last">default is false</td>
</tr>
<tr>
<td class="name"><code>isExpanded</code></td>
<td class="type">
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<span class="param-type">boolean</span>
</td>
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<td class="description last">default is false</td>
2018-08-30 02:44:35 +08:00
</tr>
<tr>
2019-11-26 05:45:09 +08:00
<td class="name"><code>prefix</code></td>
2018-08-30 02:44:35 +08:00
<td class="type">
2019-11-26 05:45:09 +08:00
<span class="param-type">string</span>
2018-08-30 02:44:35 +08:00
</td>
2019-11-26 05:45:09 +08:00
<td class="description last">default is empty string</td>
</tr>
<tr>
<td class="name"><code>notePosition</code></td>
<td class="type">
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<span class="param-type">int</span>
</td>
2018-08-30 02:44:35 +08:00
2019-11-26 05:45:09 +08:00
<td class="description last">default is last existing notePosition in a parent + 10</td>
2018-08-30 02:44:35 +08:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
2019-11-26 05:45:09 +08:00
<a href="services_backend_script_api.js.html">services/backend_script_api.js</a>, <a href="services_backend_script_api.js.html#line212">line 212</a>
2018-08-30 02:44:35 +08:00
</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="Note.html">Note</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>
2018-08-30 02:44:35 +08:00
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a>
2018-08-30 02:44:35 +08:00
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>