From 156c299896834582678960b678f81c31f3c52513 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 14 Jun 2020 14:01:55 +0200 Subject: [PATCH] Updated Custom Widget (markdown) --- Custom-Widget.md | 51 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/Custom-Widget.md b/Custom-Widget.md index a7b1b93..1dab1bf 100644 --- a/Custom-Widget.md +++ b/Custom-Widget.md @@ -2,41 +2,70 @@ It's possible to create custom widget in three possible locations where you can Positions are: -* left-pane -* center-pane -* right-pane +* left-pane +* center-pane +* right-pane -## Example +## Example - word count widget Create a code note of type JS frontend and give it `widget` label. ```javascript -const TPL = `
+ Word count: + -class TestWidget extends api.TabAwareWidget { - get position() { return 15; } +   + + Character count: + +