Skip to content

Commit

Permalink
Merge pull request #5699 from Countly/content-builder-dynamic-class
Browse files Browse the repository at this point in the history
feat: Added dynamics class on content-layout
  • Loading branch information
coskunaydinoglu authored Oct 22, 2024
2 parents 1c96f1e + ac2f631 commit 2a064c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
(function(countlyVue) {
Vue.component("cly-content-layout", countlyVue.components.create({
props: {
popperClass: {
type: String,
required: false,
default: null
},
backgroundColor: {
type: String,
required: false,
Expand All @@ -15,6 +20,9 @@
};
},
computed: {
containerClass() {
return this.popperClass || 'cly-vue-content-builder__layout-main';
}
},
template: CV.T('/javascripts/countly/vue/templates/content/content.html'),
methods: {
Expand Down Expand Up @@ -148,11 +156,6 @@

Vue.component("cly-content-body", countlyVue.components.create({
props: {
currentTab: {
type: String,
required: false,
default: null
},
hideLeftSidebar: {
type: Boolean,
required: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<slot name="content-layout-header" :background-color="backgroundColor">
</slot>
</div>
<div class="cly-vue-content-builder__layout-main" :style="{'background-color': backgroundColor}">
<div :class="containerClass" :style="{'background-color': backgroundColor}">
<slot name="content-layout-body"></slot>
</div>
</div>

0 comments on commit 2a064c2

Please sign in to comment.