From 601a413484d5083a3f9ccd9316e2564e1222ad96 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 23 May 2019 11:39:24 +0300 Subject: [PATCH] Doc update for accordion --- src/components/accordion/Accordion.vue | 2 +- src/views/accordion/AccordionDoc.vue | 69 +++++++++++++------------- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index 25b232aaa..156012a51 100644 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -19,7 +19,7 @@ export default { } tab.d_active = !tab.d_active; - let eventName = !tab.active ? 'tabclose' : 'tabopen'; + let eventName = !tab.active ? 'tab-close' : 'tab-open'; this.$emit(eventName, { originalEvent: event, tab: tab diff --git a/src/views/accordion/AccordionDoc.vue b/src/views/accordion/AccordionDoc.vue index a0fc1dcbb..27ad48201 100644 --- a/src/views/accordion/AccordionDoc.vue +++ b/src/views/accordion/AccordionDoc.vue @@ -73,7 +73,7 @@ import {Accordion, AccordionTab} from 'primevue/accordion';

Custom Content at Headers

-

Custom content can be placed at an accordion header with header element.

+

Custom content for the title section of a panel is defined using the header template.

<Accordion> <AccordionTab> @@ -134,7 +134,7 @@ export default { } -

Properties For AccordionTab

+

Properties of AccordionTab

@@ -168,24 +168,25 @@ export default {
-

Properties

+

Properties of Accordion

+

Any attribute such as style and class are passed to the main container element. Following is the additional property to configure the component.

- - - - - - + + + + + + - - - - - - + + + + + +
NameTypeDefaultDescription
NameTypeDefaultDescription
multiplebooleanfalseWhen enabled, multiple tabs can be activated at the same time.
multiplebooleanfalseWhen enabled, multiple tabs can be activated at the same time.
@@ -194,27 +195,27 @@ export default {
- - - - - + + + + + - - - - - - - - - - + + + + + + + + + +
NameParametersDescription
NameParametersDescription
tabOpenevent.originalEvent: browser event
- event.tab: Opened tab -
Callback to invoke when a tab gets expanded.
tabCloseevent.originalEvent: browser event
- event.tab: Closed tab -
Callback to invoke when an active tab is collapsed by clicking on the header.
tab-openevent.originalEvent: Browser event
+ event.tab: Opened tab +
Callback to invoke when a tab gets expanded.
tab-closeevent.originalEvent: Browser event
+ event.tab: closed tab +
Callback to invoke when an active tab is collapsed by clicking on the header.