Files
triliumnext-korean-patch/updates/2026-09-05/phase9/doc_notes/en/api-ko/frontend.html
T

167 lines
188 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang="ko"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>프런트엔드 스크립트 API</title><style>body{font:16px/1.7 system-ui,sans-serif;max-width:1050px;margin:24px auto;padding:0 22px;color:#24292f}a{color:#075fbd}pre,.tsd-signature{background:#f3f5f7;padding:12px;overflow:auto}code{font-family:monospace}.tsd-kind-icon{width:18px;height:18px}section{margin:20px 0}h2{border-bottom:1px solid #ddd}h3{margin-top:30px}ul{padding-left:24px}.tsd-anchor-icon{display:none}nav{background:#eef6ff;padding:12px}details{margin:12px 0}svg{display:none}</style><body><h1>프런트엔드 스크립트 API</h1><nav><a href="frontend.html">프런트엔드 API</a> · <a href="fnote.html">노트 객체</a> · <a href="backend.html">백엔드 API</a></nav><p>연결된 공식 문서의 한국어 사본입니다. 함수 이름과 코드 문법은 원문을 유지했습니다. 외부 문서는 운영 버전과 다를 수 있으므로 지원 여부를 확인하세요. <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API.Api.html" target="_blank" rel="noopener">공식 원문 보기</a></p><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="https://triliumnext.github.io/Notes/Script%20API/modules/Frontend_Script_API.html">프런트엔드 스크립트 API</a></li><li><a href="frontend.html" aria-current="page">Api</a></li></ul><h1>인터페이스 Api</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">Api</span> <span class="tsd-signature-symbol">{</span><br>    <a class="tsd-kind-property" href="#container">$container</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#basicwidget">BasicWidget</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.BasicWidget.html" class="tsd-signature-type tsd-kind-class">BasicWidget</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#bindglobalshortcut">bindGlobalShortcut</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">handler</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Handler.html" class="tsd-signature-type tsd-kind-type-alias">Handler</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">namespace</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#createlink">createLink</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#createnotelink">createNoteLink</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#currentnote">currentNote</a><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#dayjs">dayjs</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#formatdateiso">formatDateISO</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#formatnotesize">formatNoteSize</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#formatsize">formatSize</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getdaynote">getDayNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getmonthnote">getMonthNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">month</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getquarternote">getQuarterNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">quarter</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#gettodaynote">getTodayNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getweekfirstdaynote">getWeekFirstDayNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getweeknote">getWeekNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">week</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#getyearnote">getYearNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">year</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#logmessages">logMessages</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#logspacedupdates">logSpacedUpdates</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default-3.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#notecontextawarewidget">NoteContextAwareWidget</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.NoteContextAwareWidget.html" class="tsd-signature-type tsd-kind-class">NoteContextAwareWidget</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#originentity">originEntity</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#parsedate">parseDate</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">str</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#protectnote">protectNote</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#protectsubtree">protectSubTree</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#randomstring">randomString</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">len</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#rightpanelwidget">RightPanelWidget</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.RightPanelWidget.html" class="tsd-signature-type tsd-kind-class">RightPanelWidget</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#setupelementtooltip">setupElementTooltip</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">$el</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#showconfirmdialog">showConfirmDialog</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#showerror">showError</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">delay</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#showinfodialog">showInfoDialog</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#showmessage">showMessage</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">delay</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#showpromptdialog">showPromptDialog</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">props</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.PromptDialogOptions.html" class="tsd-signature-type tsd-kind-interface">PromptDialogOptions</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#startnote">startNote</a><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#triggercommand">triggerCommand</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-keyword">keyof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.CommandMappings.html" class="tsd-signature-type tsd-kind-type-alias">CommandMappings</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">_data</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.CommandMappings.html" class="tsd-signature-type tsd-kind-type-alias">CommandMappings</a><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#triggerevent">triggerEvent</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span> <span class="tsd-signature-keyword">extends</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.EventNames.html" class="tsd-signature-type tsd-kind-type-alias">EventNames</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.EventData.html" class="tsd-signature-type tsd-kind-type-alias">EventData</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#waituntilsynced">waitUntilSynced</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#activatenewnote-1">activateNewNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#activatenote-1">activateNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#addbuttontotoolbar-1">addButtonToToolbar</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.AddToToolbarOpts.html" class="tsd-signature-type tsd-kind-interface">AddToToolbarOpts</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#addtexttoactivecontexteditor-1">addTextToActiveContextEditor</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivecontext-1">getActiveContext</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivecontextcodeeditor-1">getActiveContextCodeEditor</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivecontextnote-1">getActiveContextNote</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivecontextnotepath-1">getActiveContextNotePath</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivecontexttexteditor-1">getActiveContextTextEditor</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivemaincontext-1">getActiveMainContext</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getactivenotedetailwidget-1">getActiveNoteDetailWidget</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default-2.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getcomponentbyel-1">getComponentByEl</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">el</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getinstancename-1">getInstanceName</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getmainnotecontexts-1">getMainNoteContexts</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnote-1">getNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnotecontexts-1">getNoteContexts</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnotes-1">getNotes</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">silentNotFoundError</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#log-1">log</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#opensplitwithnote-1">openSplitWithNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">activate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#opentabwithnote-1">openTabWithNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">activate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#refreshincludednote-1">refreshIncludedNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">includedNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#reloadnotes-1">reloadNotes</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#runasynconbackendwithmanualtransactionhandling-1">runAsyncOnBackendWithManualTransactionHandling</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#runonbackend-1">runOnBackend</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#searchfornote-1">searchForNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">searchString</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#searchfornotes-1">searchForNotes</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">searchString</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#sethoistednoteid-1">setHoistedNoteId</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L62">src/public/app/services/frontend_script_api.ts:62</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open=""><summary class="tsd-accordion-summary tsd-index-summary"><svg width="16" height="16" viewbox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg><h5 class="tsd-index-heading uppercase">목차</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">속성</h3><div class="tsd-index-list"><a href="#container" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>$container</span></a>
<a href="#basicwidget" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Basic<wbr>Widget</span></a>
<a href="#bindglobalshortcut" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>bind<wbr>Global<wbr>Shortcut</span></a>
<a href="#createlink" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>create<wbr>Link</span></a>
<a href="#createnotelink" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>create<wbr>Note<wbr>Link</span></a>
<a href="#currentnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>current<wbr>Note</span></a>
<a href="#dayjs" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>dayjs</span></a>
<a href="#formatdateiso" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>format<wbr>DateISO</span></a>
<a href="#formatnotesize" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>format<wbr>Note<wbr>Size</span></a>
<a href="#formatsize" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>format<wbr>Size</span></a>
<a href="#getdaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Day<wbr>Note</span></a>
<a href="#getmonthnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Month<wbr>Note</span></a>
<a href="#getquarternote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Quarter<wbr>Note</span></a>
<a href="#gettodaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Today<wbr>Note</span></a>
<a href="#getweekfirstdaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Week<wbr>First<wbr>Day<wbr>Note</span></a>
<a href="#getweeknote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Week<wbr>Note</span></a>
<a href="#getyearnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>get<wbr>Year<wbr>Note</span></a>
<a href="#logmessages" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>log<wbr>Messages</span></a>
<a href="#logspacedupdates" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>log<wbr>Spaced<wbr>Updates</span></a>
<a href="#notecontextawarewidget" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Note<wbr>Context<wbr>Aware<wbr>Widget</span></a>
<a href="#originentity" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>origin<wbr>Entity</span></a>
<a href="#parsedate" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>parse<wbr>Date</span></a>
<a href="#protectnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>protect<wbr>Note</span></a>
<a href="#protectsubtree" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>protect<wbr>Sub<wbr>Tree</span></a>
<a href="#randomstring" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>random<wbr>String</span></a>
<a href="#rightpanelwidget" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Right<wbr>Panel<wbr>Widget</span></a>
<a href="#setupelementtooltip" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>setup<wbr>Element<wbr>Tooltip</span></a>
<a href="#showconfirmdialog" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>show<wbr>Confirm<wbr>Dialog</span></a>
<a href="#showerror" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>show<wbr>Error</span></a>
<a href="#showinfodialog" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>show<wbr>Info<wbr>Dialog</span></a>
<a href="#showmessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>show<wbr>Message</span></a>
<a href="#showpromptdialog" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>show<wbr>Prompt<wbr>Dialog</span></a>
<a href="#startnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>start<wbr>Note</span></a>
<a href="#triggercommand" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>trigger<wbr>Command</span></a>
<a href="#triggerevent" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>trigger<wbr>Event</span></a>
<a href="#waituntilsynced" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>wait<wbr>Until<wbr>Synced</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">메서드</h3><div class="tsd-index-list"><a href="#activatenewnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>activate<wbr>New<wbr>Note</span></a>
<a href="#activatenote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>activate<wbr>Note</span></a>
<a href="#addbuttontotoolbar" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr>Button<wbr>To<wbr>Toolbar</span></a>
<a href="#addtexttoactivecontexteditor" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr>Text<wbr>To<wbr>Active<wbr>Context<wbr>Editor</span></a>
<a href="#getactivecontext" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Context</span></a>
<a href="#getactivecontextcodeeditor" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Context<wbr>Code<wbr>Editor</span></a>
<a href="#getactivecontextnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Context<wbr>Note</span></a>
<a href="#getactivecontextnotepath" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Context<wbr>Note<wbr>Path</span></a>
<a href="#getactivecontexttexteditor" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Context<wbr>Text<wbr>Editor</span></a>
<a href="#getactivemaincontext" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Main<wbr>Context</span></a>
<a href="#getactivenotedetailwidget" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Active<wbr>Note<wbr>Detail<wbr>Widget</span></a>
<a href="#getcomponentbyel" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Component<wbr>By<wbr>El</span></a>
<a href="#getinstancename" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Instance<wbr>Name</span></a>
<a href="#getmainnotecontexts" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Main<wbr>Note<wbr>Contexts</span></a>
<a href="#getnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Note</span></a>
<a href="#getnotecontexts" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Note<wbr>Contexts</span></a>
<a href="#getnotes" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Notes</span></a>
<a href="#log" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>log</span></a>
<a href="#opensplitwithnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>open<wbr>Split<wbr>With<wbr>Note</span></a>
<a href="#opentabwithnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>open<wbr>Tab<wbr>With<wbr>Note</span></a>
<a href="#refreshincludednote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>refresh<wbr>Included<wbr>Note</span></a>
<a href="#reloadnotes" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>reload<wbr>Notes</span></a>
<a href="#runasynconbackendwithmanualtransactionhandling" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr>Async<wbr>On<wbr>Backend<wbr>With<wbr>Manual<wbr>Transaction<wbr>Handling</span></a>
<a href="#runonbackend" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr>On<wbr>Backend</span></a>
<a href="#searchfornote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>search<wbr>For<wbr>Note</span></a>
<a href="#searchfornotes" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>search<wbr>For<wbr>Notes</span></a>
<a href="#sethoistednoteid" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr>Hoisted<wbr>Note<wbr>Id</span></a>
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open=""><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewbox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>속성</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="container"><span>$container</span><a href="#container" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">$container</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>스크립트가 렌더링한 전체 내용을 담는 영역</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L66">src/public/app/services/frontend_script_api.ts:66</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="basicwidget"><span>Basic<wbr>Widget</span><a href="#basicwidget" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">BasicWidget</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.BasicWidget.html" class="tsd-signature-type tsd-kind-class">BasicWidget</a></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L92">src/public/app/services/frontend_script_api.ts:92</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="bindglobalshortcut"><span>bind<wbr>Global<wbr>Shortcut</span><a href="#bindglobalshortcut" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">bindGlobalShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">handler</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Handler.html" class="tsd-signature-type tsd-kind-type-alias">Handler</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">namespace</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">handler</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Handler.html" class="tsd-signature-type tsd-kind-type-alias">Handler</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">namespace</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">keyboardShortcut</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예: &quot;ctrl+shift+a&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">handler</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Handler.html" class="tsd-signature-type tsd-kind-type-alias">Handler</a></span></li><li><span><span class="tsd-kind-parameter">namespace</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = null</span></span><div class="tsd-comment tsd-typography"><p>같은 바인딩을 여러 번 호출할 수 있다면 처리 함수의 네임스페이스를 지정하세요. 같은 ID의 처리 함수가 있으면 새 함수로 교체합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L412">src/public/app/services/frontend_script_api.ts:412</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createlink"><span>create<wbr>Link</span><a href="#createlink" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">createLink</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>지정한 노트를 가리키는 jQuery 링크 객체를 만듭니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">notePath</span>: <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>(또는 noteId)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">options</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><ul>
<li>링크를 담은 jQuery 요소. 감싸는 요소: <span>)</li>
</ul>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L263">src/public/app/services/frontend_script_api.ts:263</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createnotelink"><span class="deprecated">create<wbr>Note<wbr>Link</span><a href="#createnotelink" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">createNoteLink</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.CreateLinkOptions.html" class="tsd-signature-type tsd-kind-interface">CreateLinkOptions</a><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated">사용 중단 예정<a href="#deprecated" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
<li>대신 api.createLink()를 사용하세요.</li>
</ul>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L266">src/public/app/services/frontend_script_api.ts:266</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="currentnote"><span>current<wbr>Note</span><a href="#currentnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">currentNote</span><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a></div><div class="tsd-comment tsd-typography"><p>현재 실행 중인 소스 코드가 작성된 노트입니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L76">src/public/app/services/frontend_script_api.ts:76</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="dayjs"><span>dayjs</span><a href="#dayjs" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">dayjs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span></div><div class="tsd-comment tsd-typography"><p>날짜 처리를 위한 day.js 라이브러리입니다. 참고: <a href="https://day.js.org">https://day.js.org</a> 라이브러리 사용 안내</p>
</div><div class="tsd-comment tsd-typography"><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see">참고<a href="#see" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p><a href="https://day.js.org">https://day.js.org</a></p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L88">src/public/app/services/frontend_script_api.ts:88</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="formatdateiso"><span>format<wbr>DateISO</span><a href="#formatdateiso" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">formatDateISO</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>이 함수는 현지 시각을 반환합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">Date</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-returns"><h4 class="tsd-anchor-link" id="returns">반환값<a href="#returns" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>YYYY-MM-DD 형식의 날짜</p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L209">src/public/app/services/frontend_script_api.ts:209</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="formatnotesize"><span class="deprecated">format<wbr>Note<wbr>Size</span><a href="#formatnotesize" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">formatNoteSize</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">size</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>바이트 단위</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>서식을 적용한 문자열</p>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated-1">사용 중단 예정<a href="#deprecated-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
<li>api.formatSize()를 사용하세요.</li>
</ul>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L450">src/public/app/services/frontend_script_api.ts:450</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="formatsize"><span>format<wbr>Size</span><a href="#formatsize" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">formatSize</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">size</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>바이트 단위</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>서식을 적용한 문자열</p>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L443">src/public/app/services/frontend_script_api.ts:443</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getdaynote"><span>get<wbr>Day<wbr>Note</span><a href="#getdaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getDayNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>지정한 날짜의 일별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예: &quot;2019-04-29&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L359">src/public/app/services/frontend_script_api.ts:359</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getmonthnote"><span>get<wbr>Month<wbr>Note</span><a href="#getmonthnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getMonthNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">month</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>월별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">month</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">month</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예: &quot;2019-04&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L381">src/public/app/services/frontend_script_api.ts:381</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getquarternote"><span>get<wbr>Quarter<wbr>Note</span><a href="#getquarternote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getQuarterNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">quarter</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>지정한 날짜의 분기별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L389">src/public/app/services/frontend_script_api.ts:389</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="gettodaynote"><span>get<wbr>Today<wbr>Note</span><a href="#gettodaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getTodayNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>오늘의 일별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L352">src/public/app/services/frontend_script_api.ts:352</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getweekfirstdaynote"><span>get<wbr>Week<wbr>First<wbr>Day<wbr>Note</span><a href="#getweekfirstdaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getWeekFirstDayNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>지정한 날짜가 속한 주의 첫날에 해당하는 일별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예: &quot;2019-04-29&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L366">src/public/app/services/frontend_script_api.ts:366</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getweeknote"><span>get<wbr>Week<wbr>Note</span><a href="#getweeknote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getWeekNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">week</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>지정한 날짜의 주별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L374">src/public/app/services/frontend_script_api.ts:374</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getyearnote"><span>get<wbr>Year<wbr>Note</span><a href="#getyearnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">getYearNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">year</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>연도별 노트를 반환합니다. 없으면 자동으로 만듭니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">year</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">year</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예: &quot;2019&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method">메서드<a href="#method" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L398">src/public/app/services/frontend_script_api.ts:398</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="logmessages"><span>log<wbr>Messages</span><a href="#logmessages" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">logMessages</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L452">src/public/app/services/frontend_script_api.ts:452</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="logspacedupdates"><span>log<wbr>Spaced<wbr>Updates</span><a href="#logspacedupdates" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">logSpacedUpdates</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default-3.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L453">src/public/app/services/frontend_script_api.ts:453</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="notecontextawarewidget"><span>Note<wbr>Context<wbr>Aware<wbr>Widget</span><a href="#notecontextawarewidget" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">NoteContextAwareWidget</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.NoteContextAwareWidget.html" class="tsd-signature-type tsd-kind-class">NoteContextAwareWidget</a></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L91">src/public/app/services/frontend_script_api.ts:91</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="originentity"><span>origin<wbr>Entity</span><a href="#originentity" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">originEntity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span></div><div class="tsd-comment tsd-typography"><p>이 실행을 시작하게 한 이벤트의 엔터티</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L81">src/public/app/services/frontend_script_api.ts:81</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="parsedate"><span>parse<wbr>Date</span><a href="#parsedate" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">parseDate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">str</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Date</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L211">src/public/app/services/frontend_script_api.ts:211</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="protectnote"><span>protect<wbr>Note</span><a href="#protectnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">protectNote</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">protect</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>노트를 보호하려면 true를 사용하고 보호를 해제하려면 false를 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">includingSubtree</span>: <span class="tsd-signature-type">boolean</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L341">src/public/app/services/frontend_script_api.ts:341</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="protectsubtree"><span>protect<wbr>Sub<wbr>Tree</span><a href="#protectsubtree" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">protectSubTree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">protect</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">includingSubtree</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">protect</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>하위 트리를 보호하려면 true를 사용하고 보호를 해제하려면 false를 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">includingSubtree</span>: <span class="tsd-signature-type">boolean</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L347">src/public/app/services/frontend_script_api.ts:347</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="randomstring"><span>random<wbr>String</span><a href="#randomstring" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">randomString</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">len</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>지정한 길이의 임의 문자열을 반환합니다. 암호학적으로 안전한 난수를 만드는 함수가 아닙니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">len</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">len</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>임의 문자열</p>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-1">메서드<a href="#method-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L437">src/public/app/services/frontend_script_api.ts:437</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="rightpanelwidget"><span>Right<wbr>Panel<wbr>Widget</span><a href="#rightpanelwidget" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">RightPanelWidget</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API.RightPanelWidget.html" class="tsd-signature-type tsd-kind-class">RightPanelWidget</a></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L90">src/public/app/services/frontend_script_api.ts:90</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="setupelementtooltip"><span>setup<wbr>Element<wbr>Tooltip</span><a href="#setupelementtooltip" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">setupElementTooltip</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">$el</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">$el</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">$el</span>: <span class="tsd-signature-type">JQuery</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">&gt;</span></span><div class="tsd-comment tsd-typography"><p>도움말을 표시할 jQuery 객체</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L336">src/public/app/services/frontend_script_api.ts:336</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showconfirmdialog"><span>show<wbr>Confirm<wbr>Dialog</span><a href="#showconfirmdialog" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">showConfirmDialog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>사용자에게 확인 대화상자를 표시합니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><p>사용자가 확인하면 true로 완료되는 Promise</p>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L232">src/public/app/services/frontend_script_api.ts:232</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showerror"><span>show<wbr>Error</span><a href="#showerror" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">showError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">delay</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></div><div class="tsd-comment tsd-typography"><p>사용자에게 오류 알림을 잠깐 표시합니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L221">src/public/app/services/frontend_script_api.ts:221</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showinfodialog"><span>show<wbr>Info<wbr>Dialog</span><a href="#showinfodialog" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">showInfoDialog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>사용자에게 정보 대화상자를 표시합니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L226">src/public/app/services/frontend_script_api.ts:226</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showmessage"><span>show<wbr>Message</span><a href="#showmessage" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">showMessage</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">delay</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></div><div class="tsd-comment tsd-typography"><p>사용자에게 정보 알림을 잠깐 표시합니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L216">src/public/app/services/frontend_script_api.ts:216</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showpromptdialog"><span>show<wbr>Prompt<wbr>Dialog</span><a href="#showpromptdialog" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">showPromptDialog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">props</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.PromptDialogOptions.html" class="tsd-signature-type tsd-kind-interface">PromptDialogOptions</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>사용자에게 입력 대화상자를 표시합니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">props</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.PromptDialogOptions.html" class="tsd-signature-type tsd-kind-interface">PromptDialogOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">props</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.PromptDialogOptions.html" class="tsd-signature-type tsd-kind-interface">PromptDialogOptions</a></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>사용자가 입력한 값으로 완료되는 Promise</p>
<div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L239">src/public/app/services/frontend_script_api.ts:239</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="startnote"><span>start<wbr>Note</span><a href="#startnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">startNote</span><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a></div><div class="tsd-comment tsd-typography"><p>현재 스크립트 실행이 시작된 노트입니다. 이벤트의 진입점에 해당합니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L71">src/public/app/services/frontend_script_api.ts:71</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="triggercommand"><span>trigger<wbr>Command</span><a href="#triggercommand" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">triggerCommand</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-keyword">keyof</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.CommandMappings.html" class="tsd-signature-type tsd-kind-type-alias">CommandMappings</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">_data</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.CommandMappings.html" class="tsd-signature-type tsd-kind-type-alias">CommandMappings</a><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>명령을 실행합니다. 매우 낮은 수준의 API이므로 가능하면 다른 방법을 사용하세요.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L244">src/public/app/services/frontend_script_api.ts:244</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="triggerevent"><span>trigger<wbr>Event</span><a href="#triggerevent" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">triggerEvent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span> <span class="tsd-signature-keyword">extends</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.EventNames.html" class="tsd-signature-type tsd-kind-type-alias">EventNames</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.EventData.html" class="tsd-signature-type tsd-kind-type-alias">EventData</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">K</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>이벤트를 발생시킵니다. 매우 낮은 수준의 API이므로 가능하면 다른 방법을 사용하세요.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L249">src/public/app/services/frontend_script_api.ts:249</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="waituntilsynced"><span>wait<wbr>Until<wbr>Synced</span><a href="#waituntilsynced" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">waitUntilSynced</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>Trilium은 백엔드와 프런트엔드로 나뉘어 실행됩니다. 스크립트가 백엔드에서 변경한 내용은 프런트엔드에 비동기로 동기화됩니다.</p>
<p>이 메서드는 다음 과정이 모두 끝나면 완료되는 Promise를 반환합니다. 백엔드에서&gt; 프런트엔드로의 동기화입니다. 새 노트를 만들었다면 프런트엔드에 동기화될 때까지 기다린 뒤 활성화하는 데 사용할 수 있습니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L421">src/public/app/services/frontend_script_api.ts:421</a></li></ul></aside></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open=""><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewbox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>메서드</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="activatenewnote"><span>activate<wbr>New<wbr>Note</span><a href="#activatenewnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="activatenewnote-1"><span class="tsd-kind-call-signature">activateNewNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#activatenewnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>새로 만든 노트를 활성화합니다. this.activateNote()와 달리 프런트엔드 동기화 완료까지 확인합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">notePath</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>(또는 noteId)</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L106">src/public/app/services/frontend_script_api.ts:106</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="activatenote"><span>activate<wbr>Note</span><a href="#activatenote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="activatenote-1"><span class="tsd-kind-call-signature">activateNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#activatenote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>트리와 노트 상세 화면에서 노트를 활성화합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">notePath</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>(또는 noteId)</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L99">src/public/app/services/frontend_script_api.ts:99</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="addbuttontotoolbar"><span class="deprecated">add<wbr>Button<wbr>To<wbr>Toolbar</span><a href="#addbuttontotoolbar" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="addbuttontotoolbar-1"><span class="tsd-kind-call-signature">addButtonToToolbar</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.AddToToolbarOpts.html" class="tsd-signature-type tsd-kind-interface">AddToToolbarOpts</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addbuttontotoolbar-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>실행 도구 모음에 새 실행 도구를 추가합니다. 같은 ID가 있으면 변경합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">opts</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Frontend_Script_API._internal_.AddToToolbarOpts.html" class="tsd-signature-type tsd-kind-interface">AddToToolbarOpts</a></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-2">메서드<a href="#method-2" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated-2">사용 중단 예정<a href="#deprecated-2" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>이제 왼쪽 위 메뉴에서 실행 도구를 만들거나 변경할 수 있습니다. 메뉴 경로:&gt; 실행 도구 모음 설정. 특수한 용도에는 백엔드 API의 createOrUpdateLauncher()도 사용할 수 있습니다.</p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L132">src/public/app/services/frontend_script_api.ts:132</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="addtexttoactivecontexteditor"><span>add<wbr>Text<wbr>To<wbr>Active<wbr>Context<wbr>Editor</span><a href="#addtexttoactivecontexteditor" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="addtexttoactivecontexteditor-1"><span class="tsd-kind-call-signature">addTextToActiveContextEditor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addtexttoactivecontexteditor-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>편집기의 커서 위치에 지정한 글을 추가합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">text</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>일반 텍스트만 사용할 수 있습니다. HTML은 지원하지 않습니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L273">src/public/app/services/frontend_script_api.ts:273</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivecontext"><span>get<wbr>Active<wbr>Context</span><a href="#getactivecontext" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivecontext-1"><span class="tsd-kind-call-signature">getActiveContext</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><a href="#getactivecontext-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a></h4><p>활성 문맥인 분할 화면을 반환합니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L283">src/public/app/services/frontend_script_api.ts:283</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivecontextcodeeditor"><span>get<wbr>Active<wbr>Context<wbr>Code<wbr>Editor</span><a href="#getactivecontextcodeeditor" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivecontextcodeeditor-1"><span class="tsd-kind-call-signature">getActiveContextCodeEditor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getactivecontextcodeeditor-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>참고 <a href="https://codemirror.net/doc/manual.html#api">https://codemirror.net/doc/manual.html#api</a></p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><p>CodeMirror 인스턴스</p>
<div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-3">메서드<a href="#method-3" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L313">src/public/app/services/frontend_script_api.ts:313</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivecontextnote"><span>get<wbr>Active<wbr>Context<wbr>Note</span><a href="#getactivecontextnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivecontextnote-1"><span class="tsd-kind-call-signature">getActiveContextNote</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><a href="#getactivecontextnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a></h4><p>가운데 창에 열린 활성 노트</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L278">src/public/app/services/frontend_script_api.ts:278</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivecontextnotepath"><span>get<wbr>Active<wbr>Context<wbr>Note<wbr>Path</span><a href="#getactivecontextnotepath" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivecontextnotepath-1"><span class="tsd-kind-call-signature">getActiveContextNotePath</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><a href="#getactivecontextnotepath-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span></h4><p>활성 노트의 경로를 반환합니다. 활성 노트가 없으면 null입니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L323">src/public/app/services/frontend_script_api.ts:323</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivecontexttexteditor"><span>get<wbr>Active<wbr>Context<wbr>Text<wbr>Editor</span><a href="#getactivecontexttexteditor" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivecontexttexteditor-1"><span class="tsd-kind-call-signature">getActiveContextTextEditor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getactivecontexttexteditor-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>참고 <a href="https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html">https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html</a> 반환된 인스턴스의 사용 안내</p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><p>CKEditor 인스턴스</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L305">src/public/app/services/frontend_script_api.ts:305</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivemaincontext"><span>get<wbr>Active<wbr>Main<wbr>Context</span><a href="#getactivemaincontext" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivemaincontext-1"><span class="tsd-kind-call-signature">getActiveMainContext</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><a href="#getactivemaincontext-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a></h4><p>탭 전체를 대표하는 첫 번째 분할 화면인 활성 기본 문맥을 반환합니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L288">src/public/app/services/frontend_script_api.ts:288</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivenotedetailwidget"><span>get<wbr>Active<wbr>Note<wbr>Detail<wbr>Widget</span><a href="#getactivenotedetailwidget" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivenotedetailwidget-1"><span class="tsd-kind-call-signature">getActiveNoteDetailWidget</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default-2.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">&gt;</span><a href="#getactivenotedetailwidget-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>노트 상세 화면을 담당하는 위젯에 접근합니다. 사용할 수 있는 메서드의 예: <code>getWidgetType()</code> 및 <code>getTypeWidget()</code> 실제 위젯 유형의 구현체에 접근하는 데 사용합니다.</p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default-2.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L319">src/public/app/services/frontend_script_api.ts:319</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getcomponentbyel"><span>get<wbr>Component<wbr>By<wbr>El</span><a href="#getcomponentbyel" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getcomponentbyel-1"><span class="tsd-kind-call-signature">getComponentByEl</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">el</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#getcomponentbyel-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 DOM 요소를 소유하는 구성 요소를 반환합니다. DOM 트리에서 가장 가까운 상위 구성 요소입니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">el</span>: <span class="tsd-signature-type">HTMLElement</span></span><div class="tsd-comment tsd-typography"><p>DOM 요소</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-4">메서드<a href="#method-4" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L331">src/public/app/services/frontend_script_api.ts:331</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getinstancename"><span>get<wbr>Instance<wbr>Name</span><a href="#getinstancename" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getinstancename-1"><span class="tsd-kind-call-signature">getInstanceName</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#getinstancename-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>인스턴스 이름은 개별 Trilium 실행 환경을 구분합니다. 특정 인스턴스에서만 작업을 실행해야 하는 스크립트에 유용합니다.</p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L204">src/public/app/services/frontend_script_api.ts:204</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getmainnotecontexts"><span>get<wbr>Main<wbr>Note<wbr>Contexts</span><a href="#getmainnotecontexts" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getmainnotecontexts-1"><span class="tsd-kind-call-signature">getMainNoteContexts</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span><a href="#getmainnotecontexts-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span></h4><p>각 탭을 대표하는 모든 기본 문맥을 반환합니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L298">src/public/app/services/frontend_script_api.ts:298</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnote"><span>get<wbr>Note</span><a href="#getnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnote-1"><span class="tsd-kind-call-signature">getNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>noteId로 노트를 반환합니다. 캐시에 없으면 불러옵니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L183">src/public/app/services/frontend_script_api.ts:183</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnotecontexts"><span>get<wbr>Note<wbr>Contexts</span><a href="#getnotecontexts" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnotecontexts-1"><span class="tsd-kind-call-signature">getNoteContexts</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span><a href="#getnotecontexts-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Frontend_Script_API._internal_.NoteContext.html" class="tsd-signature-type tsd-kind-class">NoteContext</a><span class="tsd-signature-symbol">[]</span></h4><p>모든 탭의 노트 문맥인 분할 화면을 반환합니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L293">src/public/app/services/frontend_script_api.ts:293</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnotes"><span>get<wbr>Notes</span><a href="#getnotes" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnotes-1"><span class="tsd-kind-call-signature">getNotes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">silentNotFoundError</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getnotes-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>노트 목록을 반환합니다. 캐시에 없는 노트는 불러옵니다.</p>
<p>createLink() 등으로 노트를 하나씩 가져오는 대신 여러 노트를 한꺼번에 캐시에 채울 때 자주 사용합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteIds</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">silentNotFoundError</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>노트를 찾지 못해도 오류를 보고하지 않음</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L193">src/public/app/services/frontend_script_api.ts:193</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="log"><span>log</span><a href="#log" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="log-1"><span class="tsd-kind-call-signature">log</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#log-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 메시지를 화면의 로그 창에 기록합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L458">src/public/app/services/frontend_script_api.ts:458</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="opensplitwithnote"><span>open<wbr>Split<wbr>With<wbr>Note</span><a href="#opensplitwithnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="opensplitwithnote-1"><span class="tsd-kind-call-signature">openSplitWithNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">activate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#opensplitwithnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>새 분할 화면에서 노트를 엽니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">notePath</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>(또는 noteId)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">activate</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>새 분할 화면을 활성화하려면 true를 사용하고 현재 화면에 머무르려면 false를 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L123">src/public/app/services/frontend_script_api.ts:123</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="opentabwithnote"><span>open<wbr>Tab<wbr>With<wbr>Note</span><a href="#opentabwithnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="opentabwithnote-1"><span class="tsd-kind-call-signature">openTabWithNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">notePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">activate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#opentabwithnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>새 탭에서 노트를 엽니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">notePath</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>(또는 noteId)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">activate</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>새 탭을 활성화하려면 true를 사용하고 현재 탭에 머무르려면 false를 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-5">메서드<a href="#method-5" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L115">src/public/app/services/frontend_script_api.ts:115</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="refreshincludednote"><span>refresh<wbr>Included<wbr>Note</span><a href="#refreshincludednote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="refreshincludednote-1"><span class="tsd-kind-call-signature">refreshIncludedNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">includedNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#refreshincludednote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>매개변수로 지정한 노트를 포함하는 현재 열린 노트를 모두 새로 고칩니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">includedNoteId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>포함된 노트의 noteId</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L428">src/public/app/services/frontend_script_api.ts:428</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="reloadnotes"><span>reload<wbr>Notes</span><a href="#reloadnotes" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="reloadnotes-1"><span class="tsd-kind-call-signature">reloadNotes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteIds</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#reloadnotes-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>백엔드의 내용을 바탕으로 프런트엔드 노트 트리 캐시를 갱신합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteIds</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L198">src/public/app/services/frontend_script_api.ts:198</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="runasynconbackendwithmanualtransactionhandling"><span>run<wbr>Async<wbr>On<wbr>Backend<wbr>With<wbr>Manual<wbr>Transaction<wbr>Handling</span><a href="#runasynconbackendwithmanualtransactionhandling" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="runasynconbackendwithmanualtransactionhandling-1"><span class="tsd-kind-call-signature">runAsyncOnBackendWithManualTransactionHandling</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><a href="#runasynconbackendwithmanualtransactionhandling-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 익명 함수를 백엔드에서 실행합니다. 내부적으로 함수를 문자열로 직렬화한 뒤 AJAX로 전송합니다. 비동기 함수가 필요한 고급 용도에 사용합니다. 요청 단위의 자동 트랜잭션 관리는 적용되지 않으므로 api.transactional()로 트랜잭션을 직접 지정해야 합니다.</p>
<p>동기 함수라면 api.runOnBackend()를 사용하세요.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">func</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a></span><div class="tsd-comment tsd-typography"><p>백엔드에서 실행할 동기 함수</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>백엔드로 보낼 익명 함수의 매개변수 목록</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">unknown</span></h4><p>백엔드에서 실행한 함수의 반환값</p>
<div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-6">메서드<a href="#method-6" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L166">src/public/app/services/frontend_script_api.ts:166</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="runonbackend"><span>run<wbr>On<wbr>Backend</span><a href="#runonbackend" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="runonbackend-1"><span class="tsd-kind-call-signature">runOnBackend</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><a href="#runonbackend-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 익명 함수를 백엔드에서 실행합니다. 내부적으로 함수를 문자열로 직렬화한 뒤 AJAX로 전송합니다. 트랜잭션 관리가 올바르게 작동하려면 동기 함수를 전달해야 합니다. 트랜잭션을 직접 관리할 수 있다면 api.runAsyncOnBackendWithManualTransactionHandling()을 사용할 수 있습니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">func</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/types/Frontend_Script_API._internal_.Func.html" class="tsd-signature-type tsd-kind-type-alias">Func</a></span><div class="tsd-comment tsd-typography"><p>백엔드에서 실행할 동기 함수</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>백엔드로 보낼 익명 함수의 매개변수 목록</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">unknown</span></h4><p>백엔드에서 실행한 함수의 반환값</p>
<div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method-7">메서드<a href="#method-7" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L150">src/public/app/services/frontend_script_api.ts:150</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="searchfornote"><span>search<wbr>For<wbr>Note</span><a href="#searchfornote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="searchfornote-1"><span class="tsd-kind-call-signature">searchForNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">searchString</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#searchfornote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>속성과 속성값 등을 기준으로 검색할 수 있습니다. 예:
&quot;#dateModified =* MONTH AND #log&quot;전체 검색 옵션 안내: <a href="https://triliumnext.github.io/Docs/Wiki/search.html">https://triliumnext.github.io/Docs/Wiki/search.html</a></p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">searchString</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L178">src/public/app/services/frontend_script_api.ts:178</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="searchfornotes"><span>search<wbr>For<wbr>Notes</span><a href="#searchfornotes" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="searchfornotes-1"><span class="tsd-kind-call-signature">searchForNotes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">searchString</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#searchfornotes-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>속성과 속성값 등을 기준으로 검색할 수 있습니다. 예:
&quot;#dateModified =* MONTH AND #log&quot;전체 검색 옵션 안내: <a href="https://triliumnext.github.io/Docs/Wiki/search.html">https://triliumnext.github.io/Docs/Wiki/search.html</a></p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">searchString</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="fnote.html" class="tsd-signature-type tsd-kind-class">FNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L172">src/public/app/services/frontend_script_api.ts:172</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="sethoistednoteid"><span>set<wbr>Hoisted<wbr>Note<wbr>Id</span><a href="#sethoistednoteid" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="sethoistednoteid-1"><span class="tsd-kind-call-signature">setHoistedNoteId</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#sethoistednoteid-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>현재 탭에서 이 노트의 하위 트리만 표시합니다. 참고: <a href="https://triliumnext.github.io/Docs/Wiki/note-hoisting.html">https://triliumnext.github.io/Docs/Wiki/note-hoisting.html</a></p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>집중해서 표시할 노트입니다. root를 지정하면 전체 트리 표시로 돌아갑니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/public/app/services/frontend_script_api.ts#L405">src/public/app/services/frontend_script_api.ts:405</a></li></ul></aside></div></li></ul></section></section></details></div></body></html>