Add toggleable class

pull/310/head
cagataycivici 2020-04-29 23:48:16 +03:00
parent 2ca82bf177
commit 5fec14aa2d
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="p-panel p-component"> <div :class="containerClass">
<div class="p-panel-titlebar"> <div class="p-panel-titlebar">
<slot name="header"> <slot name="header">
<span class="p-panel-title" v-if="header" :id="ariaId + '_header'">{{header}}</span> <span class="p-panel-title" v-if="header" :id="ariaId + '_header'">{{header}}</span>
@ -41,6 +41,9 @@ export default {
computed: { computed: {
ariaId() { ariaId() {
return UniqueComponentId(); return UniqueComponentId();
},
containerClass() {
return ['p-panel p-component', {'p-panel-toggleable': this.toggleable}];
} }
}, },
methods: { methods: {