Files
tolaria/src/components/note-list/noteListPropertiesEvents.ts
2026-04-18 20:31:25 +02:00

14 lines
462 B
TypeScript

export type NoteListPropertiesScope = 'type' | 'inbox' | 'all' | 'view'
export interface OpenListPropertiesEventDetail {
scope: NoteListPropertiesScope
}
export const OPEN_NOTE_LIST_PROPERTIES_EVENT = 'laputa:open-note-list-properties'
export function openNoteListPropertiesPicker(scope: NoteListPropertiesScope): void {
window.dispatchEvent(new CustomEvent<OpenListPropertiesEventDetail>(OPEN_NOTE_LIST_PROPERTIES_EVENT, {
detail: { scope },
}))
}