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 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.
Any attribute such as style and class are passed to the main container element. Following is the additional property to configure the component.
Name | -Type | -Default | -Description | -
---|---|---|---|
Name | +Type | +Default | +Description | +
multiple | -boolean | -false | -When enabled, multiple tabs can be activated at the same time. | -
multiple | +boolean | +false | +When enabled, multiple tabs can be activated at the same time. | +
Name | -Parameters | -Description | -
---|---|---|
Name | +Parameters | +Description | +
tabOpen | -event.originalEvent: browser event - event.tab: Opened tab - |
- Callback to invoke when a tab gets expanded. | -
tabClose | -event.originalEvent: browser event - event.tab: Closed tab - |
- Callback to invoke when an active tab is collapsed by clicking on the header. | -
tab-open | +event.originalEvent: Browser event + event.tab: Opened tab + |
+ Callback to invoke when a tab gets expanded. | +
tab-close | +event.originalEvent: Browser event + event.tab: closed tab + |
+ Callback to invoke when an active tab is collapsed by clicking on the header. | +