Class: Select
Hierarchy
PureComponent<ISelectProps,IState>↳
Select
Constructors
constructor
• new Select(props)
Parameters
| Name | Type |
|---|---|
props | any |
Overrides
PureComponent<ISelectProps, IState\>.constructor
Defined in
components/select/select.tsx:60
Properties
contextView
• Private contextView: IContextView
Defined in
components/select/select.tsx:55
selectElm
• Private selectElm: RefObject<HTMLDivElement>
Defined in
components/select/select.tsx:57
selectInput
• Private selectInput: RefObject<HTMLInputElement>
Defined in
components/select/select.tsx:58
state
• state: IState
Overrides
PureComponent.state
Defined in
components/select/select.tsx:56
Methods
componentDidMount
▸ componentDidMount(): void
Returns
void
Overrides
PureComponent.componentDidMount
Defined in
components/select/select.tsx:79
componentWillUnmount
▸ componentWillUnmount(): void
Returns
void
Overrides
PureComponent.componentWillUnmount
Defined in
components/select/select.tsx:89
getDefaultState
▸ Private getDefaultState(props): Object
Parameters
| Name | Type |
|---|---|
props | any |
Returns
Object
| Name | Type |
|---|---|
isOpen | boolean |
option | { description?: string ; disabled?: boolean ; name?: string ; value?: string } |
option.description? | string |
option.disabled? | boolean |
option.name? | string |
option.value? | string |
Defined in
components/select/select.tsx:114
handleOnClickOption
▸ handleOnClickOption(e): void
Parameters
| Name | Type |
|---|---|
e | MouseEvent<Element, MouseEvent> |
Returns
void
Defined in
components/select/select.tsx:121
handleOnClickSelect
▸ handleOnClickSelect(e): void
Parameters
| Name | Type |
|---|---|
e | MouseEvent<Element, MouseEvent> |
Returns
void
Defined in
components/select/select.tsx:158
handleOnHoverOption
▸ handleOnHoverOption(e): void
Parameters
| Name | Type |
|---|---|
e | MouseEvent<Element, MouseEvent> |
Returns
void
Defined in
components/select/select.tsx:145
render
▸ render(): Element
Returns
Element
Overrides
PureComponent.render
Defined in
components/select/select.tsx:190
getDerivedStateFromProps
▸ Static getDerivedStateFromProps(props, state): null | { option: ISelectOptionProps }
Parameters
| Name | Type |
|---|---|
props | any |
state | any |
Returns
null | { option: ISelectOptionProps }
Defined in
components/select/select.tsx:70
getSelectOption
▸ Static Private getSelectOption(props): ISelectOptionProps
Parameters
| Name | Type |
|---|---|
props | any |