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

@@ -6,6 +6,13 @@ import StandardWidget from "./standard_widget.js";
class AttributesWidget extends StandardWidget {
getWidgetTitle() { return "Attributes"; }
getHelp() {
return {
title: "Attributes are key-value records owned by assigned to this note.",
url: "https://github.com/zadam/trilium/wiki/Attributes"
};
}
getHeaderActions() {
const $showFullButton = $("<a>").append("show dialog").addClass('widget-header-action');
$showFullButton.click(async () => {