/// import ezCombo = require('./combo'); export interface ComboBoxOptions extends ezCombo.ComboOptions { valueField?: string; textField?: string; groupField?: string; groupFormatter?: (group?: string) => void; mode?: string; limitToList?: boolean; url?: string; method?: string; data?: any[]; queryParams?: {}; filter?: (q: string, row: any) => boolean; formatter?: (row: any) => void; loader?: (param: any, success: Function, error: Function) => void; loadFilter?: (data: any) => any; onBeforeLoad?: (param: any) => void; onLoadSuccess?: () => void; onLoadError?: () => void; onSelect?: (record: any) => void; onUnselect?: (record: any) => void; } export declare class ComboBox extends ezCombo.Combo { selector: string | JQuery | HTMLElement; $combobox: JQuery; constructor(selector: string | JQuery | HTMLElement, options?: ComboBoxOptions); /** * Return the options object. */ options(): ComboBoxOptions; /** * Return the loaded data. */ getData(): any; /** * Load the locale list data. */ loadData(data: any): this; /** * Request the remote list data. Pass the 'url' parameter to override the original URL value. * if url is empty, it will use the old url */ reload(url?: string): this; /** * Set the combobox value array. */ setValues(values: any[]): this; /** * Set the combobox value. */ setValue(value: string | number): this; /** * Clear the combobox value. */ clear(): this; /** * Select the specified item. */ select(value: string | number): this; /** * Unselect the specified item. */ unselect(value: string | number): this; }