$container $container : any
Defined in apps/client/dist/services/frontend_script_api.d.ts:49 Defined in apps/client/dist/services/frontend_script_api.d.ts:74 bind Global Shortcut bindGlobalShortcut : ( keyboardShortcut : string , handler : Handler , namespace ?: string , ) => void Type Declaration ( keyboardShortcut : string , handler : Handler , namespace ?: string ) : void Parameters keyboardShortcut : string handler : Handler Optionalnamespace : string Returns void Defined in apps/client/dist/services/frontend_script_api.d.ts:351 create Link Type Declaration ( notePath : string , options ?: CreateLinkOptions ) : Promise < any > Returns Promise < any >
jQuery element with the link (wrapped in )
Defined in apps/client/dist/services/frontend_script_api.d.ts:221 create Note Link Defined in apps/client/dist/services/frontend_script_api.d.ts:223 current Note Defined in apps/client/dist/services/frontend_script_api.d.ts:57 dayjs dayjs : __module
Defined in apps/client/dist/services/frontend_script_api.d.ts:71 formatDateISO : ( date : Date ) => string
Type Declaration ( date : Date ) : string Returns string Defined in apps/client/dist/services/frontend_script_api.d.ts:176 formatNoteSize : ( size : number ) => string
Type Declaration ( size : number ) : string Returns string formatted string
Defined in apps/client/dist/services/frontend_script_api.d.ts:384 formatSize : ( size : number ) => string
Type Declaration ( size : number ) : string Returns string formatted string
Defined in apps/client/dist/services/frontend_script_api.d.ts:378 get Day Note getDayNote : ( date : string ) => Promise < FNote > Type Declaration ( date : string ) : Promise < FNote > Returns Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:305 get Month Note getMonthNote : ( month : string ) => Promise < FNote > Type Declaration ( month : string ) : Promise < FNote > Returns Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:324 get Quarter Note getQuarterNote : ( quarter : string ) => Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:331 get Today Note getTodayNote : () => Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:299 get Week First Day Note getWeekFirstDayNote : ( date : string ) => Promise < FNote > Type Declaration ( date : string ) : Promise < FNote > Returns Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:311 get Week Note getWeekNote : ( week : string ) => Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:318 get Year Note getYearNote : ( year : string ) => Promise < FNote > Type Declaration ( year : string ) : Promise < FNote > Returns Promise < FNote > Defined in apps/client/dist/services/frontend_script_api.d.ts:339 log Messages logMessages : Record < string , string [] > Defined in apps/client/dist/services/frontend_script_api.d.ts:385 log Spaced Updates Defined in apps/client/dist/services/frontend_script_api.d.ts:386 Note Context Aware Widget Defined in apps/client/dist/services/frontend_script_api.d.ts:73 origin Entity originEntity : unknown
Defined in apps/client/dist/services/frontend_script_api.d.ts:65 parse Date parseDate : ( str : string ) => Date
Defined in apps/client/dist/services/frontend_script_api.d.ts:177 preact preact : Readonly < { ActionButton : ( __namedParameters : ActionButtonProps ) => Element ; Admonition : ( __namedParameters : AdmonitionProps ) => Element ; Button : ( __namedParameters : ButtonProps ) => Element ; CKEditor : ( __namedParameters : CKEditorOpts ) => Element ; Collapsible : ( __namedParameters : CollapsibleProps ) => Element ; Dropdown : ( __namedParameters : DropdownProps ) => Element ; FormCheckbox : ( __namedParameters : FormCheckboxProps ) => Element ; FormDropdownDivider : () => Element ; FormDropdownList : < T > ( __namedParameters : FormDropdownList < T > ) => Element ; FormDropdownSubmenu : ( __namedParameters : { children : ComponentChildren ; dropStart ?: boolean ; icon : string ; onDropdownToggleClicked ?: () => void ; title : ComponentChildren ; } , ) => Element ; FormFileUploadActionButton : ( param : Omit < ActionButtonProps , "onClick" > & Pick < FormFileUploadProps , "onChange" , > , ) => Element ; FormFileUploadButton : ( param : Omit < ButtonProps , "onClick" > & Pick < FormFileUploadProps , "onChange" , > , ) => Element ; FormGroup : ( __namedParameters : FormGroupProps ) => Element ; FormListItem : ( __namedParameters : FormListItemOpts ) => Element ; FormRadioGroup : ( __namedParameters : FormRadioProps ) => Element ; FormText : ( __namedParameters : { children : ComponentChildren } ) => Element ; FormTextArea : ( __namedParameters : FormTextAreaProps ) => Element ; FormTextBox : ( __namedParameters : FormTextBoxProps ) => Element ; FormToggle : ( __namedParameters : FormToggleProps ) => Element ; Fragment : FunctionComponent < {} > ; h : typeof h ; Icon : ( __namedParameters : IconProps ) => Element ; LinkButton : ( __namedParameters : LinkButtonProps ) => Element ; LoadingSpinner : () => Element ; Modal : ( __namedParameters : ModalProps ) => Element ; NoteAutocomplete : ( __namedParameters : NoteAutocompleteProps ) => Element ; NoteLink : ( __namedParameters : NoteLinkOpts ) => Element ; RawHtml : ( __namedParameters : RawHtmlProps & { containerRef ?: RefObject < HTMLSpanElement > ; } , ) => Element ; RightPanelWidget : ( __namedParameters : RightPanelWidgetProps ) => Element ; Slider : ( __namedParameters : SliderProps ) => Element ; defineLauncherWidget ( definition : Omit < LauncherWidgetDefinitionWithType , "type" > , ) : { render : () => VNode ; type : string } ; defineWidget ( definition : WidgetDefinition , ) : { parent : "right-pane" ; position ?: number ; render : () => VNode ; type : string ; } ; useActiveNoteContext () : { componentId : string ; hoistedNoteId : string ; isReadOnlyTemporarilyDisabled : boolean ; note : FNote ; noteContext : NoteContext ; noteId : string ; notePath : string ; ntxId : string ; parentComponent : ReactWrappedWidget ; viewScope : ViewScope ; } ; useCallback < T extends Function > ( callback : T , inputs : Inputs ) : T ; useChildNotes ( parentNoteId : string ) : FNote [] ; useContentElement ( noteContext : NoteContext ) : HTMLElement ; useContext < T > ( context : PreactContext < T > ) : T ; useDebugValue < T > ( value : T , formatter ?: ( value : T ) => any ) : void ; useEditorSpacedUpdate ( __namedParameters : { dataSaved ?: ( savedData : SavedData ) => void ; getData : () => SavedData | Promise < SavedData > ; note : FNote ; noteContext : NoteContext ; noteType : | "file" | "image" | "search" | "noteMap" | "launcher" | "doc" | "contentWidget" | "text" | "relationMap" | "render" | "canvas" | "mermaid" | "book" | "webView" | "code" | "mindMap" | "aiChat" ; onContentChange : ( newContent : string ) => void ; updateInterval ?: number ; } , ) : default ; useEffect ( effect : EffectCallback , inputs ?: Inputs ) : void ; useElementSize ( ref : RefObject < HTMLElement > ) : DOMRect ; useErrorBoundary ( callback ?: ( error : any , errorInfo : ErrorInfo ) => void | Promise < void > , ) : [ any , () => void ] ; useGetContextData < K extends keyof NoteContextDataMap > ( key : K , ) : NoteContextDataMap [ K ] ; useGetContextDataFrom < K extends keyof NoteContextDataMap > ( noteContext : NoteContext , key : K , ) : NoteContextDataMap [ K ] ; useGlobalShortcut ( keyboardShortcut : string , handler : Handler ) : void ; useId () : string ; useImperativeHandle < T , R > ( ref : Ref < T > , create : () => R , inputs ?: Inputs , ) : void ; useImperativeSearchHighlighlighting ( highlightedTokens : string [] , ) : ( el : HTMLElement ) => void ; useIsNoteReadOnly ( note : FNote , noteContext : NoteContext , ) : { enableEditing : ( enabled ?: boolean ) => void ; isReadOnly : boolean ; temporarilyEditable : boolean ; } ; useKeyboardShortcuts ( scope : "code-detail" | "text-detail" , containerRef : RefObject < HTMLElement > , parentComponent : default , ntxId : string , ) : void ; useLauncherVisibility ( launchNoteId : string ) : boolean ; useLayoutEffect ( effect : EffectCallback , inputs ?: Inputs ) : void ; useLegacyImperativeHandlers ( handlers : Record < string , Function > ) : void ; useLegacyWidget < T extends BasicWidget > ( widgetFactory : () => T , __namedParameters ?: { containerClassName ?: string ; containerStyle ?: CSSProperties ; noteContext ?: NoteContext ; } , ) : [ VNode < {} > , T ] ; useMemo < T > ( factory : () => T , inputs : Inputs ) : T ; useNote ( noteId : string , silentNotFoundError ?: boolean ) : FNote ; useNoteBlob ( note : FNote , componentId ?: string ) : default ; useNoteColorClass ( note : FNote ) : string ; useNoteContext () : { componentId : string ; hoistedNoteId : string ; isReadOnlyTemporarilyDisabled : boolean ; note : FNote ; noteContext : NoteContext ; noteId : string ; notePath : string ; ntxId : string ; parentComponent : ReactWrappedWidget ; viewScope : ViewScope ; } ; useNoteIcon ( note : FNote ) : string ; useNoteLabel ( note : FNote , labelName : FilterLabelsByType < string > , ) : [ string , ( newValue : string ) => void ] ; useNoteLabelBoolean ( note : FNote , labelName : FilterLabelsByType < boolean > , ) : [ boolean , ( newValue : boolean ) => void ] ; useNoteLabelInt ( note : FNote , labelName : FilterLabelsByType < number > , ) : [ number , ( newValue : number ) => void ] ; useNoteLabelWithDefault ( note : FNote , labelName : FilterLabelsByType < string > , defaultValue : string , ) : [ string , ( newValue : string ) => void ] ; useNoteProperty < T extends keyof FNote > ( note : FNote , property : T , componentId ?: string , ) : FNote [ T ] ; useNoteRelation ( note : FNote , relationName : "searchScript" | "ancestor" | "target" | "widget" , ) : [ string , ( newValue : string ) => void ] ; useNoteRelationTarget ( note : FNote , relationName : "searchScript" | "ancestor" | "target" | "widget" , ) : readonly [ FNote ] ; useNoteSavedData ( noteId : string ) : string ; useNoteTitle ( noteId : string , parentNoteId : string ) : string ; useNoteTreeDrag ( containerRef : MutableRef < HTMLElement > , __namedParameters : { callback : ( data : DragData [] , e : DragEvent ) => void ; dragEnabled : boolean ; dragNotEnabledMessage : Omit < ToastOptions , "id" > ; } , ) : void ; useReducer < S , A > ( reducer : Reducer < S , A > , initialState : S , ) : [ S , Dispatch < A > ] ; useReducer < S , A , I > ( reducer : Reducer < S , A > , initialArg : I , init : ( arg : I ) => S , ) : [ S , Dispatch < A > ] ; useRef < T > ( initialValue : T ) : MutableRef < T > ; useRef < T > ( initialValue : T ) : RefObject < T > ; useRef < T = undefined > () : MutableRef < T > ; useResizeObserver ( ref : RefObject < HTMLElement > , callback : () => void ) : void ; useSetContextData < K extends keyof NoteContextDataMap > ( noteContext : NoteContext , key : K , value : NoteContextDataMap [ K ] , ) : void ; useSpacedUpdate ( callback : () => void | Promise < void > , interval ?: number , ) : default ; useState < S > ( initialState : S | (
() => S )
) : [ S , Dispatch < StateUpdater < S > > ] ; useState < S = undefined > () : [ S , Dispatch < StateUpdater < S > > ] ; useStaticTooltip ( elRef : RefObject < Element > , config ?: Partial < Options > , ) : void ; useStaticTooltipWithKeyboardShortcut ( elRef : RefObject < Element > , title : string , actionName : | "deleteNotes" | "showRevisions" | "showOptions" | "showRecentChanges" | "toggleNoteHoisting" | "editNoteTitle" | "editBranchPrefix" | "duplicateSubtree" | "expandSubtree" | "collapseSubtree" | "sortChildNotes" | "cutNotesToClipboard" | "copyNotesToClipboard" | "pasteNotesFromClipboard" | "moveNotesTo" | "cloneNotesTo" | "searchInSubtree" | "moveNoteUp" | "moveNoteDown" | "moveNoteUpInHierarchy" | "moveNoteDownInHierarchy" | "selectAllNotesInParent" | "createNoteIntoInbox" | "addNewLabel" | "addNewRelation" | "reopenLastTab" | "closeActiveTab" | "runActiveNote" | "jumpToNote" | "openTodayNote" | "commandPalette" | "backInNoteHistory" | "forwardInNoteHistory" | "forceSaveRevision" | "scrollToActiveNote" | "quickSearch" | "collapseTree" | "createNoteAfter" | "createNoteInto" | "addNoteAboveToSelection" | "addNoteBelowToSelection" | "openNewTab" | "activateNextTab" | "activatePreviousTab" | "openNewWindow" | "toggleTray" | "firstTab" | "secondTab" | "thirdTab" | "fourthTab" | "fifthTab" | "sixthTab" | "seventhTab" | "eigthTab" | "ninthTab" | "lastTab" | "showNoteSource" | "showSQLConsole" | "showBackendLog" | "showCheatsheet" | "showHelp" | "addLinkToText" | "followLinkUnderCursor" | "insertDateTimeToText" | "pasteMarkdownIntoText" | "cutIntoNote" | "addIncludeNoteToText" | "editReadOnlyNote" | "toggleRibbonTabClassicEditor" | "toggleRibbonTabBasicProperties" | "toggleRibbonTabBookProperties" | "toggleRibbonTabFileProperties" | "toggleRibbonTabImageProperties" | "toggleRibbonTabOwnedAttributes" | "toggleRibbonTabInheritedAttributes" | "toggleRibbonTabPromotedAttributes" | "toggleRibbonTabNoteMap" | "toggleRibbonTabNoteInfo" | "toggleRibbonTabNotePaths" | "toggleRibbonTabSimilarNotes" | "toggleRightPane" | "printActiveNote" | "exportAsPdf" | "openNoteExternally" | "renderActiveNote" | "unhoist" | "reloadFrontendApp" | "openDevTools" | "findInText" | "toggleLeftPane" | "toggleFullscreen" | "zoomOut" | "zoomIn" | "zoomReset" | "copyWithoutFormatting" | "toggleZenMode" , opts ?: Omit < Partial < Options > , "title" > , ) : void ; useSyncedRef < T > ( externalRef ?: RefObject < T > , initialValue ?: T , ) : RefObject < T > ; useTextEditor ( noteContext : NoteContext ) : CKTextEditor ; useTooltip ( elRef : RefObject < HTMLElement > , config : Partial < Options > , ) : { hideTooltip : () => void ; showTooltip : () => void } ; useTriliumEvent < T extends EventNames > ( eventName : T , handler : ( data : EventData < T > ) => void , ) : void ; useTriliumEvents < T extends EventNames > ( eventNames : T [] , handler : ( data : EventData < T > , eventName : T ) => void , ) : void ; useTriliumOption ( name : keyof OptionDefinitions , needsRefresh ?: boolean , ) : [ string , ( newValue : OptionValue ) => Promise < void > ] ; useTriliumOptionBool ( name : keyof OptionDefinitions , needsRefresh ?: boolean , ) : [ boolean , ( newValue : boolean ) => Promise < void > ] ; useTriliumOptionInt ( name : keyof OptionDefinitions , ) : [ number , ( newValue : number ) => Promise < void > ] ; useTriliumOptionJson < T > ( name : keyof OptionDefinitions , needsRefresh ?: boolean , ) : [ T , ( newValue : T ) => Promise < void > ] ; useTriliumOptions < T extends keyof OptionDefinitions > ( ... names : T [] , ) : readonly [ Record < T , string > , < T_1 extends keyof OptionDefinitions > ( newValues : Record < T_1 , OptionValue > , ) => Promise < void > , ] ; useUniqueName ( prefix ?: string ) : string ; useWindowSize () : { windowHeight : number ; windowWidth : number } ; } , > Defined in apps/client/dist/services/frontend_script_api.d.ts:391 protect Note protectNote : ( noteId : string , protect : boolean , includingSubtree : boolean , ) => Promise < void >
Type Declaration ( noteId : string , protect : boolean , includingSubtree : boolean ) : Promise < void > Parameters noteId : string protect : boolean includingSubtree : boolean Returns Promise < void > Defined in apps/client/dist/services/frontend_script_api.d.ts:290 protect Sub Tree protectSubTree : ( noteId : string , protect : boolean , includingSubtree : boolean , ) => Promise < void >
Type Declaration ( noteId : string , protect : boolean , includingSubtree : boolean ) : Promise < void > Parameters noteId : string protect : boolean includingSubtree : boolean Returns Promise < void > Defined in apps/client/dist/services/frontend_script_api.d.ts:295 random String randomString : ( len ?: number ) => string
Type Declaration ( len ?: number ) : string Returns string random string
Defined in apps/client/dist/services/frontend_script_api.d.ts:373 Defined in apps/client/dist/services/frontend_script_api.d.ts:72 setupElementTooltip : ( $el : any ) => void
Type Declaration ( $el : any ) : void Returns void Defined in apps/client/dist/services/frontend_script_api.d.ts:286 show Confirm Dialog showConfirmDialog : ( message : string ) => Promise < boolean >
Defined in apps/client/dist/services/frontend_script_api.d.ts:194 show Error showError : ( message : string , timeout ?: number ) => void
Defined in apps/client/dist/services/frontend_script_api.d.ts:185 show Info Dialog showInfoDialog : ( message : any , extraProps ?: InfoExtraProps ) => Promise < unknown > Defined in apps/client/dist/services/frontend_script_api.d.ts:189 show Message showMessage : ( message : string , timeout ?: number , icon ?: string ) => void
Defined in apps/client/dist/services/frontend_script_api.d.ts:181 show Prompt Dialog Defined in apps/client/dist/services/frontend_script_api.d.ts:200 start Note Defined in apps/client/dist/services/frontend_script_api.d.ts:53 trigger Command Defined in apps/client/dist/services/frontend_script_api.d.ts:204 trigger Event Defined in apps/client/dist/services/frontend_script_api.d.ts:208 wait Until Synced waitUntilSynced : () => Promise < void >
Defined in apps/client/dist/services/frontend_script_api.d.ts:359
Container of all the rendered script content