mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
Configurable CSS classes to Default Widget
This commit is contained in:
@@ -4,10 +4,15 @@ export default {
|
||||
mixins: [
|
||||
AbstractWidget
|
||||
],
|
||||
computed: {
|
||||
css() {
|
||||
return ['dashboard-widget-default', this.config.css];
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$emit('setConfig', false)
|
||||
},
|
||||
template: `<div class="dashboard-widget-default">
|
||||
template: `<div :class="css">
|
||||
<h5 class="card-title">{{ config.title }}</h5>
|
||||
<p class="card-text">{{ config.msg }}</p>
|
||||
</div>`
|
||||
|
||||
Reference in New Issue
Block a user