@engie-group/fluid-design-system
Version:
The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.
40 lines (39 loc) • 1.46 kB
TypeScript
/**
* --------------------------------------------------------------------------
* NJ: dropdown.ts
* --------------------------------------------------------------------------
*/
import { Core } from '../../globals/ts/enum';
import AbstractComponent from '../../globals/ts/abstract-component';
export default class Dropdown extends AbstractComponent {
static readonly NAME = "nj-dropdown";
protected static readonly DATA_KEY = "nj.dropdown";
protected static readonly EVENT_KEY: string;
protected static readonly DATA_API_KEY = Core.KEY_PREFIX;
private static readonly ESCAPE_KEYCODE;
private static readonly ATTRIBUTE;
private static readonly CLASS_NAME;
protected static readonly SELECTOR: {
default: string;
input: string;
label: string;
options: string;
};
private static readonly EVENT;
value: string;
constructor(element: HTMLElement);
closeMenu(): void;
dispose(): void;
static handleCollapseShow(event: any): void;
static handleCollapseHide(event: any): void;
static getInstance(element: HTMLElement): Dropdown;
static init(options?: {}): Dropdown[];
private addTouchEvent;
private addBlurEvent;
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
private registerEvents;
}