trilium-timeline/Timeline Widget/button.js

7 lines
200 B
JavaScript
Raw Permalink Normal View History

// Add UI Button shortcut
api.addButtonToToolbar({
title: 'Timeline',
icon: 'bx bxs-calendar',
action: async () => api.activateNote(await api.startNote.getRelationValue('targetNote'))
});