import "select2"; import "select2/dist/js/i18n/da"; export interface IDropdownModuleOptions { language?: string; width?: string; searchable?: boolean; allowClear?: boolean; placeholder?: string; dropdownParent?: JQuery; /** * Optional: Override additional select2 options. Experimental!! Be careful, this could also overwrite some of the stuff that DropdownModule does to modify select2. */ additionalSelect2Options?: Select2.Options; } export default class DropdownModule { init(selector: string | HTMLElement, options?: IDropdownModuleOptions): void; destroy(selector: string | HTMLElement): void; open(selector: string | HTMLElement): void; private initDropdownModule; }