Skip to content

Commit 2a064c2

Browse files
Merge pull request #5699 from Countly/content-builder-dynamic-class
feat: Added dynamics class on content-layout
2 parents 1c96f1e + ac2f631 commit 2a064c2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

frontend/express/public/javascripts/countly/vue/components/content.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
(function(countlyVue) {
33
Vue.component("cly-content-layout", countlyVue.components.create({
44
props: {
5+
popperClass: {
6+
type: String,
7+
required: false,
8+
default: null
9+
},
510
backgroundColor: {
611
type: String,
712
required: false,
@@ -15,6 +20,9 @@
1520
};
1621
},
1722
computed: {
23+
containerClass() {
24+
return this.popperClass || 'cly-vue-content-builder__layout-main';
25+
}
1826
},
1927
template: CV.T('/javascripts/countly/vue/templates/content/content.html'),
2028
methods: {
@@ -148,11 +156,6 @@
148156

149157
Vue.component("cly-content-body", countlyVue.components.create({
150158
props: {
151-
currentTab: {
152-
type: String,
153-
required: false,
154-
default: null
155-
},
156159
hideLeftSidebar: {
157160
type: Boolean,
158161
required: false,

frontend/express/public/javascripts/countly/vue/templates/content/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<slot name="content-layout-header" :background-color="backgroundColor">
44
</slot>
55
</div>
6-
<div class="cly-vue-content-builder__layout-main" :style="{'background-color': backgroundColor}">
6+
<div :class="containerClass" :style="{'background-color': backgroundColor}">
77
<slot name="content-layout-body"></slot>
88
</div>
99
</div>

0 commit comments

Comments
 (0)