diff --git a/Widget-Basics.md b/Widget-Basics.md new file mode 100644 index 0000000..2172a6b --- /dev/null +++ b/Widget-Basics.md @@ -0,0 +1,105 @@ +### The Very Basics + +Based on the information from [[Frontend Basics]], the most basic widget we can make looks something like this. + +```js +class MyWidget extends api.BasicWidget { + get position() {return 1;} + get parentWidget() {return "left-pane"} + + doRender() { + this.$widget = $("