Skip to content

Commit 956bf1b

Browse files
committed
feat(tabs): add isExpandEvent static method
1 parent 33f9fa9 commit 956bf1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

elements/pf-tabs/pf-tabs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { property } from 'lit/decorators/property.js';
44
import { cascades } from '@patternfly/pfe-core/decorators.js';
55

66
import { BaseTabs } from './BaseTabs.js';
7+
import { TabExpandEvent } from './BaseTab.js';
78
import { PfTab } from './pf-tab.js';
89
import { PfTabPanel } from './pf-tab-panel.js';
910

@@ -73,6 +74,10 @@ export class PfTabs extends BaseTabs {
7374
return element instanceof PfTabPanel;
7475
}
7576

77+
static isExpandEvent(event: Event): event is TabExpandEvent {
78+
return event instanceof TabExpandEvent;
79+
}
80+
7681
@cascades('pf-tab', 'pf-tab-panel')
7782
@property({ reflect: true }) box: 'light' | 'dark' | null = null;
7883

0 commit comments

Comments
 (0)