mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
refactor widget constructor
This commit is contained in:
@@ -5,17 +5,15 @@ import messagingService from "../services/messaging.js";
|
||||
import StandardWidget from "./standard_widget.js";
|
||||
|
||||
class AttributesWidget extends StandardWidget {
|
||||
constructor(ctx, state) {
|
||||
super(ctx, state);
|
||||
|
||||
this.$title.text("Attributes");
|
||||
getWidgetTitle() { return "Attributes"; }
|
||||
|
||||
getHeaderActions() {
|
||||
const $showFullButton = $("<a>").append("show dialog").addClass('widget-header-action');
|
||||
$showFullButton.click(() => {
|
||||
attributesDialog.showDialog();
|
||||
});
|
||||
|
||||
this.$headerActions.append($showFullButton);
|
||||
return [$showFullButton];
|
||||
}
|
||||
|
||||
async doRenderBody() {
|
||||
|
||||
Reference in New Issue
Block a user