From c0a4ff12459d0f51781737adb42d4d5d26699de7 Mon Sep 17 00:00:00 2001 From: mitch Date: Wed, 26 Oct 2016 14:44:35 -0600 Subject: [PATCH] Add the collapse option to Panel component. Closes issue #21 --- docs/example/accordionDocs.vue | 6 ++++++ src/Panel.vue | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/example/accordionDocs.vue b/docs/example/accordionDocs.vue index 99b8d0d0..d4671193 100644 --- a/docs/example/accordionDocs.vue +++ b/docs/example/accordionDocs.vue @@ -90,6 +90,12 @@

null

Define the type of color for the tab (single).

+
+

collapse

+

Boolean

+

null

+

Define whether this panel can be collapsed. This will default to true if in an accordion.

+

If you want to personalice your header with some html you can use the slot instead of header attribute (panel #1 in the example).

diff --git a/src/Panel.vue b/src/Panel.vue index 548bdc18..5338304c 100644 --- a/src/Panel.vue +++ b/src/Panel.vue @@ -1,6 +1,6 @@