# Type Alias EventMappings

type EventMappings = {
activeContextChanged : { noteContext: NoteContext };
activeNoteChanged : {};
activeScreenChanged : { activeScreen: Screen };
addNewLabel : CommandData ;
addNewRelation : CommandData ;
apiLogMessages : { messages: string[]; noteId: string };
beforeNoteContextRemove : { ntxIds: string[] };
beforeNoteSwitch : { noteContext: NoteContext };
cloneNoteIdsTo : { noteIds: string[] };
contextsReopened : {
afterNtxId?: string;
mainNtxId: string | null;
ntxId?: string;
tabPosition: number;
};
entitiesReloaded : { loadResults: default };
exportPng : { ntxId: string | null | undefined };
exportSvg : { ntxId: string | null | undefined };
frocaReloaded : {};
geoMapCreateChildNote : { ntxId: string | null | undefined };
hoistedNoteChanged : { noteId: string; ntxId: string | null };
initialRenderComplete : {};
newNoteContextCreated : { noteContext: NoteContext };
noteContextRemoved : { ntxIds: string[] };
noteContextReorder : {
newMainNtxId: string;
ntxIdsInOrder: string[];
oldMainNtxId: string;
};
noteDetailRefreshed : { ntxId?: string
| null };
notesReloaded : { noteIds: string[] };
noteSwitched : NoteSwitchedContext ;
noteSwitchedAndActivated : NoteSwitchedContext ;
noteTypeMimeChanged : { noteId: string };
openBulkActionsDialog : { selectedOrActiveNoteIds: string[] };
protectedSessionStarted : {};
readOnlyTemporarilyDisabled : { noteContext: NoteContext };
reEvaluateHighlightsListWidgetVisibility : { noteId: string | undefined };
reEvaluateTocWidgetVisibility : { noteId: string | undefined };
refreshData : { ntxId: string | null | undefined };
refreshIncludedNote : { noteId: string };
refreshNoteList : { noteId: string };
relationMapCreateChildNote : { ntxId: string | null | undefined };
relationMapResetPanZoom : { ntxId: string | null | undefined };
relationMapResetZoomIn : { ntxId: string | null | undefined };
relationMapResetZoomOut : { ntxId: string | null | undefined };
searchRefreshed : { ntxId?: string | null };
setNoteContext : { noteContext: NoteContext };
showAddLinkDialog : { text: string; textTypeWidget: default };
showHighlightsListWidget : { noteId: string };
showIncludeDialog : { textTypeWidget: default };
showSearchError : { error: string };
showTocWidget : { noteId: string };
sqlQueryResults : CommandData & { results: SqlExecuteResults };
tabReorder : { ntxIdsInOrder: string[] };
zenModeChanged : { isEnabled: boolean };
}

- Defined in src/public/app/components/app_context.ts:268

##### Index

### Properties

activeContextChanged
activeNoteChanged
activeScreenChanged
addNewLabel
addNewRelation
apiLogMessages
beforeNoteContextRemove
beforeNoteSwitch
cloneNoteIdsTo
contextsReopened
entitiesReloaded
exportPng
exportSvg
frocaReloaded
geoMapCreateChildNote
hoistedNoteChanged
initialRenderComplete
newNoteContextCreated
noteContextRemoved
noteContextReorder
noteDetailRefreshed
notesReloaded
noteSwitched
noteSwitchedAndActivated
noteTypeMimeChanged
openBulkActionsDialog
protectedSessionStarted
readOnlyTemporarilyDisabled
reEvaluateHighlightsListWidgetVisibility
reEvaluateTocWidgetVisibility
refreshData
refreshIncludedNote
refreshNoteList
relationMapCreateChildNote
relationMapResetPanZoom
relationMapResetZoomIn
relationMapResetZoomOut
searchRefreshed
setNoteContext
showAddLinkDialog
showHighlightsListWidget
showIncludeDialog
showSearchError
showTocWidget
sqlQueryResults
tabReorder
zenModeChanged

## Properties

### activeContextChanged

activeContextChanged: { noteContext: NoteContext }

- Defined in src/public/app/components/app_context.ts:297

### activeNoteChanged

activeNoteChanged: {}

- Defined in src/public/app/components/app_context.ts:368

### activeScreenChanged

activeScreenChanged: { activeScreen: Screen }

Triggered when the CommandMappings.setActiveScreen command is invoked.

- Defined in src/public/app/components/app_context.ts:294

### addNewLabel

addNewLabel: CommandData

- Defined in src/public/app/components/app_context.ts:285

### addNewRelation

addNewRelation: CommandData

- Defined in src/public/app/components/app_context.ts:286

### apiLogMessages

apiLogMessages: { messages: string[]; noteId: string }

- Defined in src/public/app/components/app_context.ts:278

### beforeNoteContextRemove

beforeNoteContextRemove: { ntxIds: string[] }

- Defined in src/public/app/components/app_context.ts:303

### beforeNoteSwitch

beforeNoteSwitch: { noteContext: NoteContext }

- Defined in src/public/app/components/app_context.ts:300

### cloneNoteIdsTo

cloneNoteIdsTo: { noteIds: string[] }

- Defined in src/public/app/components/app_context.ts:379

### contextsReopened

contextsReopened: {
afterNtxId?: string;
mainNtxId: string | null;
ntxId?: string;
tabPosition: number;
}

- Defined in src/public/app/components/app_context.ts:331

### entitiesReloaded

entitiesReloaded: { loadResults: default }

- Defined in src/public/app/components/app_context.ts:282

### exportPng

exportPng: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:352

### exportSvg

exportSvg: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:351

### frocaReloaded

frocaReloaded: {}

- Defined in src/public/app/components/app_context.ts:270

### geoMapCreateChildNote

geoMapCreateChildNote: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:353

### hoistedNoteChanged

hoistedNoteChanged: { noteId: string; ntxId: string | null }

- Defined in src/public/app/components/app_context.ts:327

### initialRenderComplete

initialRenderComplete: {}

- Defined in src/public/app/components/app_context.ts:269

### newNoteContextCreated

newNoteContextCreated: { noteContext: NoteContext }

- Defined in src/public/app/components/app_context.ts:345

### noteContextRemoved

noteContextRemoved: { ntxIds: string[] }

- Defined in src/public/app/components/app_context.ts:348

### noteContextReorder

noteContextReorder: {
newMainNtxId: string;
ntxIdsInOrder: string[];
oldMainNtxId: string;
}

- Defined in src/public/app/components/app_context.ts:340

### noteDetailRefreshed

noteDetailRefreshed: { ntxId?: string | null }

- Defined in src/public/app/components/app_context.ts:337

### notesReloaded

notesReloaded: { noteIds: string[] }

- Defined in src/public/app/components/app_context.ts:272

### noteSwitched

noteSwitched: NoteSwitchedContext

- Defined in src/public/app/components/app_context.ts:306

### noteSwitchedAndActivated

noteSwitchedAndActivated: NoteSwitchedContext

- Defined in src/public/app/components/app_context.ts:307

### noteTypeMimeChanged

noteTypeMimeChanged: { noteId: string }

- Defined in src/public/app/components/app_context.ts:362

### openBulkActionsDialog

openBulkActionsDialog: { selectedOrActiveNoteIds: string[] }

- Defined in src/public/app/components/app_context.ts:376

### protectedSessionStarted

protectedSessionStarted: {}

- Defined in src/public/app/components/app_context.ts:271

### readOnlyTemporarilyDisabled

readOnlyTemporarilyDisabled: { noteContext: NoteContext }

- Defined in src/public/app/components/app_context.ts:290

### reEvaluateHighlightsListWidgetVisibility

reEvaluateHighlightsListWidgetVisibility: { noteId: string | undefined }

- Defined in src/public/app/components/app_context.ts:311

### reEvaluateTocWidgetVisibility

reEvaluateTocWidgetVisibility: { noteId: string | undefined }

- Defined in src/public/app/components/app_context.ts:314

### refreshData

refreshData: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:382

### refreshIncludedNote

refreshIncludedNote: { noteId: string }

- Defined in src/public/app/components/app_context.ts:275

### refreshNoteList

refreshNoteList: { noteId: string }

- Defined in src/public/app/components/app_context.ts:359

### relationMapCreateChildNote

relationMapCreateChildNote: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:364

### relationMapResetPanZoom

relationMapResetPanZoom: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:365

### relationMapResetZoomIn

relationMapResetZoomIn: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:366

### relationMapResetZoomOut

relationMapResetZoomOut: { ntxId: string | null | undefined }

- Defined in src/public/app/components/app_context.ts:367

### searchRefreshed

searchRefreshed: { ntxId?: string | null }

- Defined in src/public/app/components/app_context.ts:326

### setNoteContext

setNoteContext: { noteContext: NoteContext }

- Defined in src/public/app/components/app_context.ts:308

### showAddLinkDialog

showAddLinkDialog: { text: string; textTypeWidget: default }

- Defined in src/public/app/components/app_context.ts:369

### showHighlightsListWidget

showHighlightsListWidget: { noteId: string }

- Defined in src/public/app/components/app_context.ts:317

### showIncludeDialog

showIncludeDialog: { textTypeWidget: default }

- Defined in src/public/app/components/app_context.ts:373

### showSearchError

showSearchError: { error: string }

- Defined in src/public/app/components/app_context.ts:323

### showTocWidget

showTocWidget: { noteId: string }

- Defined in src/public/app/components/app_context.ts:320

### sqlQueryResults

sqlQueryResults: CommandData & { results: SqlExecuteResults }

- Defined in src/public/app/components/app_context.ts:287

### tabReorder

tabReorder: { ntxIdsInOrder: string[] }

- Defined in src/public/app/components/app_context.ts:356

### zenModeChanged

zenModeChanged: { isEnabled: boolean }

- Defined in src/public/app/components/app_context.ts:363