diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-07-26 15:30:55 +0200 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-07-26 15:30:55 +0200 |
| commit | ad330f2c54bb26a3c4f23b5fe40be9a5dc0c5007 (patch) | |
| tree | c30c51a8d4dc7d02c282e863c7acd8ac622d6d54 /lib/classes/sidebar/VueWidget.php | |
| parent | 9f5df1138b1ca5fb6267a8d2a17b4147f86a4bcf (diff) | |
add SidebarWidget vue componentbiest-1171-vue-widget
Diffstat (limited to 'lib/classes/sidebar/VueWidget.php')
| -rw-r--r-- | lib/classes/sidebar/VueWidget.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/classes/sidebar/VueWidget.php b/lib/classes/sidebar/VueWidget.php new file mode 100644 index 0000000..f4f0583 --- /dev/null +++ b/lib/classes/sidebar/VueWidget.php @@ -0,0 +1,20 @@ +<?php +/** + * This widget type delegates all rendering of the widget to vuejs. + * + * @author Elmar Ludwig + * @license GPL2 or any later version + * @since Stud.IP 5.0 + */ +class VueWidget extends Widget +{ + /** + * Constructs the widget with the given id on the element. + */ + public function __construct($id) + { + $this->id = $id; + $this->layout = 'widgets/vue-widget'; + $this->forced_rendering = true; + } +} |
