Skip to content

Commit

Permalink
add event documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamigibbs committed Jan 7, 2025
1 parent 768070c commit 6968d5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web-components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3219,6 +3219,9 @@ declare namespace LocalJSX {
* If `true`, doesn't fire the CustomEvent which can be used for analytics tracking.
*/
"disableAnalytics"?: boolean;
/**
* The event will fire when the Expand/Collapse All button is clicked. It will emit the status of the accordion items as either "allOpen" or "allClosed".
*/
"onAccordionExpandCollapseAll"?: (event: VaAccordionCustomEvent<any>) => void;
/**
* The event used to track usage of the component. This is emitted when an accordion item is toggled and disableAnalytics is not true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export class VaAccordion {
})
componentLibraryAnalytics: EventEmitter;

/**
* The event will fire when the Expand/Collapse All button is clicked. It will
* emit the status of the accordion items as either "allOpen" or "allClosed".
*/
@Event({
composed: true,
bubbles: true,
Expand Down

0 comments on commit 6968d5d

Please sign in to comment.