sidebars are now represented as widgets

This commit is contained in:
zadam
2020-02-04 22:46:17 +01:00
parent 0cc013c13f
commit 786bbbc160
7 changed files with 67 additions and 32 deletions

View File

@@ -25,6 +25,10 @@ class BasicWidget extends Component {
this.$widget.toggle(show);
}
isVisible() {
return this.$widget.is(":visible");
}
remove() {
if (this.$widget) {
this.$widget.remove();