A hook to manage a popup state.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | object | The arguments for the hook. Properties
|
- Since
- 4.0.1
- Source
Returns:
The popup state.
- Type:
- object
Methods
(inner) closePopup()
Close the popup.
- Since
- 4.0.1
- Source
(inner) handleEscKeyDown(event)
Handles the keydown event for the escape key.
Parameters:
| Name | Type | Description |
|---|---|---|
event | Event | The event object. |
- Since
- 4.0.1
- Source
(inner) openPopup()
Open the popup.
- Since
- 4.0.1
- Source