refactor widget constructor

This commit is contained in:
zadam
2019-08-17 10:45:20 +02:00
parent 723fc42d88
commit 53c4bb8a94
6 changed files with 15 additions and 32 deletions

View File

@@ -26,15 +26,7 @@ const TPL = `
`;
class NoteInfoWidget extends StandardWidget {
/**
* @param {TabContext} ctx
* @param {object} state
*/
constructor(ctx, state) {
super(ctx, state);
this.$title.text("Note info");
}
getWidgetTitle() { return "Note info"; }
async doRenderBody() {
this.$body.html(TPL);