@shakrmedia/editor-sdk ShakrEditorOpenMediaLibraryEvent
ShakrEditorOpenMediaLibraryEvent interface
Event Object for 'open_media_library' event.
Signature:export interface ShakrEditorOpenMediaLibraryEvent
Properties
Property | Type | Description |
---|---|---|
callback | (res: { media_items: ShakrEditorMedia[]; }) => void | Callback function that should be called with the selected media items |
library_id | string | ShakrEditorMediaLibrary.id property of ShakrEditorMediaLibrary provided to ShakrEditor constructor option ShakrEditorOptions.media_libraries property. This can be used to distinguish which library has requested the media. |