element/types/select.d.ts
Jingkun Hua 3b378ad58f Add TypeScript definitions (#3910)
* add typings into package.json

* add typings for global instance api

* add common component definition

* add layout components' definition

* add icons definition

* add component size definition

* add component description

* add button definition

* add radio definition

* add checkbox definition

* add input definitions

* add input-number definition

* add select definition

* add cascader definition

* add switch definition

* add slider definition

* add time picker definition

* add date picker definition

* add upload definition

* add rate definition

* add color picker definition

* add form definition

* add tooltip definition

* add table definition

* rename TextAlignment to Horizontal alignment

* add tag definition

* add progress definition

* add tree definition

* add pagination definition

* add badge definition

* add alert definition

* fix typo

* Loading: add definition

* Message: add definition

* Loading: remove unnecessary declare keyword

* MessageBox: add definition

* Notification: add definition

* Menu: add definition

* Tabs: add definition

* Breadcrumb: add definition

* Dropdown: add definition

* Steps: add definition

* Dialog: add definition

* Popover: add definition

* Card: add definition

* Carousel: add definition

* Collapse: add definition

* Loading: update description

* some $message method params should be optional

* Select: update definition

* DatePicker: update definition
2017-10-17 03:36:12 -05:00

66 lines
1.6 KiB
TypeScript

import { ElementUIComponent, ElementUIComponentSize } from './component'
export interface QueryChangeHandler {
/**
* @param queryString Current value of the text input
*/
(queryString: string): void
}
/** Dropdown Select Component */
export declare class ElSelect extends ElementUIComponent {
/** The form input value */
value: any
/** Whether multiple-select is activated */
multiple: boolean
/** Whether Select is disabled */
disabled: boolean
/** Size of Input */
size: ElementUIComponentSize
/** Whether single select can be cleared */
clearable: boolean
/** Maximum number of options user can select when multiple is true. No limit when set to 0 */
multipleLimit: number
/** The name attribute of select input */
name: string
/** Placeholder */
placeholder: string
/** Whether Select is filterable */
filterable: boolean
/** Whether creating new items is allowed. To use this, filterable must be true */
allowCreate: boolean
/** Custom filter method */
filterMethod: AlterItemsEventHandler
/** Whether options are loaded from server */
remote: boolean
/** Custom remote search method */
remoteMethod: AlterItemsEventHandler
/** Whether Select is loading data from server */
loading: boolean
/** Displayed text while loading data from server */
loadingText: string
/** Displayed text when no data matches the filtering query */
noMatchText: string
/** Displayed text when there is no options */
noDataText: string
/** Custom class name for Select's dropdown */
popperClass: string
}