Skip to content

Commit b9f86f8

Browse files
committed
docs: changeset
1 parent 9728b9e commit b9f86f8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.changeset/tabs-expand-event.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@patternfly/elements": minor
3+
---
4+
`<pf-tabs>`: add `isExpandEvent` static method, to help prevent name conflicts
5+
6+
```js
7+
import { PfTabs } from '@patternfly/elements/pf-tabs/pf-tabs.js';
8+
document.addEventListener('expand', function(event) {
9+
if (PfTabs.isExpandEvent(event)) {
10+
// a pf-tabs' tab has expanded
11+
}
12+
});
13+
```

0 commit comments

Comments
 (0)