/// /// declare namespace M { class FormSelect extends Component { /** * Get Instance */ static getInstance(elem: Element): FormSelect; /** * Init FormSelect */ static init(els: Element, options?: Partial): FormSelect; /** * Init FormSelects */ static init(els: MElements, options?: Partial): FormSelect[]; /** * If this is a multiple select */ isMultiple: boolean; /** * The select wrapper element */ wrapper: Element; /** * Dropdown UL element */ dropdownOptions: HTMLUListElement; /** * Text input that shows current selected option */ input: HTMLInputElement; /** * Instance of the dropdown plugin for this select */ dropdown: Dropdown; /** * Get selected values in an array */ getSelectedValues(): string[]; } interface FormSelectOptions { /** * Classes to be added to the select wrapper element * @default '' */ classes: string; /** * Pass options object to select dropdown initialization * @default {} */ dropdownOptions: Partial; } } interface JQuery { formSelect(method: keyof Pick): JQuery; formSelect(options?: Partial): JQuery; }