widgets can have a help link with title

This commit is contained in:
zadam
2019-09-09 21:23:04 +02:00
parent 76f3e87790
commit f5228f87f0
9 changed files with 76 additions and 5 deletions

View File

@@ -11,6 +11,13 @@ const TPL = `
class LinkMapWidget extends StandardWidget {
getWidgetTitle() { return "Link map"; }
getHelp() {
return {
title: "Link map shows incoming and outgoing links from/to the current note.",
url: "https://github.com/zadam/trilium/wiki/Link-map"
};
}
getHeaderActions() {
const $showFullButton = $("<a>").append("show full").addClass('widget-header-action');
$showFullButton.click(async () => {