trilium-timeline/Timeline Widget/button.js

7 lines
200 B
JavaScript
Raw Normal View History

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