Skip to main content

@shakrmedia/editor-sdk ShakrEditorOpenMediaLibraryEvent

ShakrEditorOpenMediaLibraryEvent interface

Event Object for 'open_media_library' event.

Signature:
export interface ShakrEditorOpenMediaLibraryEvent 

Properties

PropertyTypeDescription
callback(res: { media_items: ShakrEditorMedia[]; }) => voidCallback function that should be called with the selected media items
library_idstringShakrEditorMediaLibrary.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.