-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
32 lines (27 loc) · 1.26 KB
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { TabItemState } from "@fundamental-ngx/core/tabs";
import { FdWebComponent } from "@fundamental-ngx/core/web-components";
interface HTMLElementFdwTabEventMap extends HTMLElementEventMap {
opened: Event;
closed: Event;
}
declare global {
interface HTMLElementTagNameMap {
'fdw-tab': FdwTab;
'fdw-button': FdwButton;
}
}
declare interface FdwButton extends FdWebComponent, HTMLElement {}
declare interface FdwTab extends FdWebComponent, HTMLElement {
ariaLabel: string;
ariaLabelledBy?: string;
title: string;
count?: string;
glyph?: string;
header: boolean;
disabled: boolean;
tabState?: TabItemState;
addEventListener<K extends keyof HTMLElementFdwTabEventMap>(type: K, listener: (this: FdwTab, ev: HTMLElementFdwTabEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementFdwTabEventMap>(type: K, listener: (this: FdwTab, ev: HTMLElementFdwTabEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}