A hook that provides a way to use the media manager.
- Since
- 4.1.0
- Source
Returns:
The media manager hook.
- Type:
- object
Methods
(inner) openMediaManager(contentModeopt, idopt, onMediaSelectopt, optionsopt)
Opens the media manager.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
contentMode | string | <optional> | The content mode for the media manager (can be upload or browse). |
id | object | <optional> | The id for the media manager. |
onMediaSelect | function | <optional> | The callback to run when media is selected. |
options | object | <optional> | The options for the media manager. |
- Since
- 4.1.0