mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			7787 lines
		
	
	
		
			81 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			7787 lines
		
	
	
		
			81 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="utf-8">
 | 
						|
    <title>JSDoc: Class: FrontendScriptApi</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">Class: FrontendScriptApi</h1>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<section>
 | 
						|
 | 
						|
<header>
 | 
						|
    
 | 
						|
        <h2><span class="attribs"><span class="type-signature"></span></span>FrontendScriptApi</h2>
 | 
						|
        
 | 
						|
    
 | 
						|
</header>
 | 
						|
 | 
						|
<article>
 | 
						|
    <div class="container-overview">
 | 
						|
    
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line23">line 23</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    
 | 
						|
    </div>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <h3 class="subsection-title">Members</h3>
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="$container"><span class="type-signature"></span>$container<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <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>
 | 
						|
            
 | 
						|
                <td class="name"><code>container</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">jQuery</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">of all the rendered script content</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line27">line 27</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="BasicWidget"><span class="type-signature"></span>BasicWidget<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5 class="subsection-title">Properties:</h5>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
<table class="props">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">BasicWidget</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line46">line 46</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="CollapsibleWidget"><span class="type-signature"></span>CollapsibleWidget<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5 class="subsection-title">Properties:</h5>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
<table class="props">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">CollapsibleWidget</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line40">line 40</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="NoteContextAwareWidget"><span class="type-signature"></span>NoteContextAwareWidget<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5 class="subsection-title">Properties:</h5>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
<table class="props">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">NoteContextAwareWidget</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line43">line 43</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="currentNote"><span class="type-signature"></span>currentNote<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <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>
 | 
						|
            
 | 
						|
                <td class="name"><code>note</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">where script is currently executing</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line32">line 32</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="originEntity"><span class="type-signature"></span>originEntity<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <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>
 | 
						|
            
 | 
						|
                <td class="name"><code>entity</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
|
 | 
						|
 | 
						|
<span class="param-type">null</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">whose event triggered this execution</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line34">line 34</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
<h4 class="name" id="startNote"><span class="type-signature"></span>startNote<span class="type-signature"></span></h4>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <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>
 | 
						|
            
 | 
						|
                <td class="name"><code>note</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">where script started executing</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line30">line 30</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <h3 class="subsection-title">Methods</h3>
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="activateNewNote"><span class="type-signature"></span>activateNewNote<span class="signature">(notePath)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Activates newly created note. Compared to this.activateNote() also makes sure that frontend has been fully synced.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>notePath</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">(or noteId)</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line65">line 65</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<void></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="activateNote"><span class="type-signature"></span>activateNote<span class="signature">(notePath)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Activates note in the tree and in the note detail.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>notePath</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">(or noteId)</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line55">line 55</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<void></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="addButtonToToolbar"><span class="type-signature"></span>addButtonToToolbar<span class="signature">()</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>this API has no effect anymore. Use bookmarks or launchpad shortcuts instead.</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line120">line 120</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="addTextToActiveContextEditor"><span class="type-signature"></span>addTextToActiveContextEditor<span class="signature">(text)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Adds given text to the editor cursor
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>text</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">this must be clear text, HTML is not supported.</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line323">line 323</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="addTextToActiveTabEditor"><span class="type-signature"></span>addTextToActiveTabEditor<span class="signature">(text)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Adds given text to the editor cursor
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>text</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">this must be clear text, HTML is not supported.</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use addTextToActiveContextEditor() instead</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line311">line 311</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="bindGlobalShortcut"><span class="type-signature"></span>bindGlobalShortcut<span class="signature">(keyboardShortcut, handler)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>keyboardShortcut</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "ctrl+shift+a"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>handler</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">function</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line514">line 514</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="createNoteLink"><span class="type-signature"></span>createNoteLink<span class="signature">(notePath, params<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Create note link (jQuery object) for given note.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
        <th>Attributes</th>
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>notePath</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">(or noteId)</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>params</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
                    <optional><br>
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">
 | 
						|
                <h6>Properties</h6>
 | 
						|
                
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <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>showTooltip</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
                    <optional><br>
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
                <td class="default">
 | 
						|
                
 | 
						|
                    true
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">enable/disable tooltip on the link</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>showNotePath</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">show also whole note's path as part of the link</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>showNoteIcon</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">show also note icon before the title</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>title=</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
                    <optional><br>
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
                <td class="default">
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">custom link tile with note's title as default</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
            </td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line302">line 302</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="formatDateISO"><span class="type-signature"></span>formatDateISO<span class="signature">(date)</span><span class="type-signature"> → {string}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>date</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">Date</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line242">line 242</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    date in YYYY-MM-DD format
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveContextCodeEditor"><span class="type-signature"></span>getActiveContextCodeEditor<span class="signature">()</span><span class="type-signature"> → {Promise.<CodeMirror>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    See https://codemirror.net/doc/manual.html#api
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line369">line 369</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    instance of CodeMirror
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<CodeMirror></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveContextNote"><span class="type-signature"></span>getActiveContextNote<span class="signature">()</span><span class="type-signature"> → {<a href="NoteShort.html">NoteShort</a>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line340">line 340</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    active note (loaded into right pane)
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type"><a href="NoteShort.html">NoteShort</a></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveContextNotePath"><span class="type-signature"></span>getActiveContextNotePath<span class="signature">()</span><span class="type-signature"> → {Promise.<(string|null)>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line395">line 395</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    returns note path of active note or null if there isn't active note
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<(string|null)></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveContextTextEditor"><span class="type-signature"></span>getActiveContextTextEditor<span class="signature">()</span><span class="type-signature"> → {Promise.<CKEditor>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for a documentation on the returned instance.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line361">line 361</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    instance of CKEditor
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<CKEditor></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveNoteDetailWidget"><span class="type-signature"></span>getActiveNoteDetailWidget<span class="signature">()</span><span class="type-signature"> → {Promise.<NoteDetailWidget>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Get access to the widget handling note detail. Methods like `getWidgetType()` and `getTypeWidget()` to get to the
 | 
						|
implementation of actual widget type.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line378">line 378</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<NoteDetailWidget></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveTabNote"><span class="type-signature"></span>getActiveTabNote<span class="signature">()</span><span class="type-signature"> → {<a href="NoteShort.html">NoteShort</a>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getActiveContextNote() instead</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line330">line 330</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    active note (loaded into right pane)
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type"><a href="NoteShort.html">NoteShort</a></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveTabNotePath"><span class="type-signature"></span>getActiveTabNotePath<span class="signature">()</span><span class="type-signature"> → {Promise.<(string|null)>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getActiveContextNotePath() instead</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line385">line 385</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    returns note path of active note or null if there isn't active note
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<(string|null)></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getActiveTabTextEditor"><span class="type-signature"></span>getActiveTabTextEditor<span class="signature">(callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for a documentation on the returned instance.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
        <th>Attributes</th>
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>callback</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
                    <optional><br>
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">callback receiving "textEditor" instance</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getActiveContextTextEditor()</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line349">line 349</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getComponentByEl"><span class="type-signature"></span>getComponentByEl<span class="signature">(el)</span><span class="type-signature"> → {Component}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns component which owns given DOM element (the nearest parent component in DOM tree)
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>el</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">Element</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">DOM element</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line404">line 404</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Component</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getDateNote"><span class="type-signature"></span>getDateNote<span class="signature">(date)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns day note for a given date. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>date</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "2019-04-29"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getDayNote instead</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line456">line 456</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getDayNote"><span class="type-signature"></span>getDayNote<span class="signature">(date)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns day note for a given date. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>date</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "2019-04-29"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line465">line 465</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getInstanceName"><span class="type-signature"></span>getInstanceName<span class="signature">()</span><span class="type-signature"> → {string}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Instance name identifies particular Trilium instance. It can be useful for scripts
 | 
						|
if some action needs to happen on only one specific instance.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line235">line 235</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getMonthNote"><span class="type-signature"></span>getMonthNote<span class="signature">(month)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns month-note. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>month</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "2019-04"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line483">line 483</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getNote"><span class="type-signature"></span>getNote<span class="signature">(noteId)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns note by given noteId. If note is missing from cache, it's loaded.
 | 
						|
*
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteId</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line207">line 207</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getNotes"><span class="type-signature"></span>getNotes<span class="signature">(noteIds, silentNotFoundError<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise.<Array.<<a href="NoteShort.html">NoteShort</a>>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns list of notes. If note is missing from cache, it's loaded.
 | 
						|
 | 
						|
This is often used to bulk-fill the cache with notes which would have to be picked one by one
 | 
						|
otherwise (by e.g. createNoteLink())
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
        <th>Attributes</th>
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteIds</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">Array.<string></span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>silentNotFoundError</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
                <td class="attributes">
 | 
						|
                
 | 
						|
                    <optional><br>
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
 | 
						|
                
 | 
						|
                </td>
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">don't report error if the note is not found</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line219">line 219</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<Array.<<a href="NoteShort.html">NoteShort</a>>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getTodayNote"><span class="type-signature"></span>getTodayNote<span class="signature">()</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns date-note for today. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line446">line 446</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getWeekNote"><span class="type-signature"></span>getWeekNote<span class="signature">(date)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns day note for the first date of the week of the given date. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>date</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "2019-04-29"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line474">line 474</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="getYearNote"><span class="type-signature"></span>getYearNote<span class="signature">(year)</span><span class="type-signature"> → {Promise.<<a href="NoteShort.html">NoteShort</a>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Returns year-note. If it doesn't exist, it is automatically created.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>year</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">e.g. "2019"</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line492">line 492</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<<a href="NoteShort.html">NoteShort</a>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="log"><span class="type-signature"></span>log<span class="signature">(message)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Log given message to the log pane in UI
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>message</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line551">line 551</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="openSplitWithNote"><span class="type-signature"></span>openSplitWithNote<span class="signature">(notePath, activate)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Open a note in a new split.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>notePath</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">(or noteId)</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>activate</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">set to true to activate the new split, false to stay on the current split</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line96">line 96</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<void></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="openTabWithNote"><span class="type-signature"></span>openTabWithNote<span class="signature">(notePath, activate)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Open a note in a new tab.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>notePath</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">(or noteId)</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>activate</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">set to true to activate the new tab, false to stay on the current tab</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line79">line 79</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<void></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="parseDate"><span class="type-signature"></span>parseDate<span class="signature">(str)</span><span class="type-signature"> → {Date}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>str</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line249">line 249</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    parsed object
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Date</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="protectActiveNote"><span class="type-signature"></span>protectActiveNote<span class="signature">()</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use protectNote and protectSubtree instead</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line416">line 416</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="protectNote"><span class="type-signature"></span>protectNote<span class="signature">(noteId, protect)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteId</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>protect</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">true to protect note, false to unprotect</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line427">line 427</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="protectSubTree"><span class="type-signature"></span>protectSubTree<span class="signature">(noteId, protect)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteId</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>protect</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">boolean</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">true to protect subtree, false to unprotect</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line436">line 436</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="randomString"><span class="type-signature"></span>randomString<span class="signature">(length)</span><span class="type-signature"> → {string}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Return randomly generated string of given length. This random string generation is NOT cryptographically secure.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>length</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">number</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">of the string</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line541">line 541</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    random string
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="refreshIncludedNote"><span class="type-signature"></span>refreshIncludedNote<span class="signature">(includedNoteId)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    This will refresh all currently opened notes which have included note specified in the parameter
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>includedNoteId</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">noteId of the included 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_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line532">line 532</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="refreshTree"><span class="type-signature"></span>refreshTree<span class="signature">()</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>- this is now no-op since all the changes should be gracefully handled per widget</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line289">line 289</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="reloadNotes"><span class="type-signature"></span>reloadNotes<span class="signature">(noteIds)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Update frontend tree (note) cache from the backend.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteIds</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">Array.<string></span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line227">line 227</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="runOnBackend"><span class="type-signature"></span>runOnBackend<span class="signature">(script, params)</span><span class="type-signature"> → {Promise.<*>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Executes given anonymous function on the backend.
 | 
						|
Internally this serializes the anonymous function into string and sends it to backend via AJAX.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>script</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">script to be executed on the backend</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>params</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">Array.<?></span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">list of parameters to the anonymous function to be send to backend</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line145">line 145</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
<div class="param-desc">
 | 
						|
    return value of the executed function on the backend
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<*></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="runOnServer"><span class="type-signature"></span>runOnServer<span class="signature">()</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
        <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>new name of this API call is runOnBackend so use that</li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line173">line 173</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="searchForNote"><span class="type-signature"></span>searchForNote<span class="signature">(searchString)</span><span class="type-signature"> → {Promise.<(<a href="NoteShort.html">NoteShort</a>|null)>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    This is a powerful search method - you can search by attributes and their values, e.g.:
 | 
						|
"#dateModified =* MONTH AND #log". See full documentation for all options at: https://github.com/zadam/trilium/wiki/Search
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>searchString</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line195">line 195</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<(<a href="NoteShort.html">NoteShort</a>|null)></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="searchForNotes"><span class="type-signature"></span>searchForNotes<span class="signature">(searchString)</span><span class="type-signature"> → {Promise.<Array.<<a href="NoteShort.html">NoteShort</a>>>}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    This is a powerful search method - you can search by attributes and their values, e.g.:
 | 
						|
"#dateModified =* MONTH AND #log". See full documentation for all options at: https://github.com/zadam/trilium/wiki/Search
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>searchString</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line183">line 183</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise.<Array.<<a href="NoteShort.html">NoteShort</a>>></span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="setHoistedNoteId"><span class="type-signature"></span>setHoistedNoteId<span class="signature">(noteId)</span><span class="type-signature"> → {Promise}</span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Hoist note in the current tab. See https://github.com/zadam/trilium/wiki/Note-hoisting
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>noteId</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">set hoisted note. 'root' will effectively unhoist</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line501">line 501</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<h5>Returns:</h5>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
 | 
						|
<dl>
 | 
						|
    <dt>
 | 
						|
        Type
 | 
						|
    </dt>
 | 
						|
    <dd>
 | 
						|
        
 | 
						|
<span class="param-type">Promise</span>
 | 
						|
 | 
						|
 | 
						|
    </dd>
 | 
						|
</dl>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="setupElementTooltip"><span class="type-signature"></span>setupElementTooltip<span class="signature">($el)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>$el</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last">jquery object on which to setup the tooltip</td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line410">line 410</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="showError"><span class="type-signature"></span>showError<span class="signature">(message)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Show error message to the user.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>message</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line265">line 265</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="showMessage"><span class="type-signature"></span>showMessage<span class="signature">(message)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Show info message to the user.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>message</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line257">line 257</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="triggerCommand"><span class="type-signature"></span>triggerCommand<span class="signature">(name, data)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Trigger command.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>name</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>data</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line274">line 274</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="triggerEvent"><span class="type-signature"></span>triggerEvent<span class="signature">(name, data)</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Trigger event.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    <h5>Parameters:</h5>
 | 
						|
    
 | 
						|
 | 
						|
<table class="params">
 | 
						|
    <thead>
 | 
						|
    <tr>
 | 
						|
        
 | 
						|
        <th>Name</th>
 | 
						|
        
 | 
						|
 | 
						|
        <th>Type</th>
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        
 | 
						|
 | 
						|
        <th class="last">Description</th>
 | 
						|
    </tr>
 | 
						|
    </thead>
 | 
						|
 | 
						|
    <tbody>
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>name</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">string</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
        <tr>
 | 
						|
            
 | 
						|
                <td class="name"><code>data</code></td>
 | 
						|
            
 | 
						|
 | 
						|
            <td class="type">
 | 
						|
            
 | 
						|
                
 | 
						|
<span class="param-type">object</span>
 | 
						|
 | 
						|
 | 
						|
            
 | 
						|
            </td>
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            
 | 
						|
 | 
						|
            <td class="description last"></td>
 | 
						|
        </tr>
 | 
						|
 | 
						|
    
 | 
						|
    </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line283">line 283</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
            
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <h4 class="name" id="waitUntilSynced"><span class="type-signature"></span>waitUntilSynced<span class="signature">()</span><span class="type-signature"></span></h4>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<div class="description">
 | 
						|
    Trilium runs in backend and frontend process, when something is changed on the backend from script,
 | 
						|
frontend will get asynchronously synchronized.
 | 
						|
 | 
						|
This method returns a promise which resolves once all the backend -> frontend synchronization is finished.
 | 
						|
Typical use case is when new note has been created, we should wait until it is synced into frontend and only then activate it.
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<dl class="details">
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
    <dt class="tag-source">Source:</dt>
 | 
						|
    <dd class="tag-source"><ul class="dummy"><li>
 | 
						|
        <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line525">line 525</a>
 | 
						|
    </li></ul></dd>
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</dl>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
        
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
 | 
						|
    
 | 
						|
</article>
 | 
						|
 | 
						|
</section>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
</div>
 | 
						|
 | 
						|
<nav>
 | 
						|
    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Attribute.html">Attribute</a></li><li><a href="Branch.html">Branch</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li><li><a href="NoteComplement.html">NoteComplement</a></li><li><a href="NoteShort.html">NoteShort</a></li><li><a href="module.exports.html">exports</a></li></ul><h3>Global</h3><ul><li><a href="global.html#doRenderBody">doRenderBody</a></li></ul>
 | 
						|
</nav>
 | 
						|
 | 
						|
<br class="clear">
 | 
						|
 | 
						|
<footer>
 | 
						|
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a>
 | 
						|
</footer>
 | 
						|
 | 
						|
<script> prettyPrint(); </script>
 | 
						|
<script src="scripts/linenumber.js"> </script>
 | 
						|
</body>
 | 
						|
</html> |