We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isExpandEvent
1 parent 33f9fa9 commit 956bf1bCopy full SHA for 956bf1b
elements/pf-tabs/pf-tabs.ts
@@ -4,6 +4,7 @@ import { property } from 'lit/decorators/property.js';
4
import { cascades } from '@patternfly/pfe-core/decorators.js';
5
6
import { BaseTabs } from './BaseTabs.js';
7
+import { TabExpandEvent } from './BaseTab.js';
8
import { PfTab } from './pf-tab.js';
9
import { PfTabPanel } from './pf-tab-panel.js';
10
@@ -73,6 +74,10 @@ export class PfTabs extends BaseTabs {
73
74
return element instanceof PfTabPanel;
75
}
76
77
+ static isExpandEvent(event: Event): event is TabExpandEvent {
78
+ return event instanceof TabExpandEvent;
79
+ }
80
+
81
@cascades('pf-tab', 'pf-tab-panel')
82
@property({ reflect: true }) box: 'light' | 'dark' | null = null;
83
0 commit comments