UNPKG

@kedao/finder

Version:

Media manager for Kedao Editor.

40 lines (39 loc) 1.44 kB
export default class FinderController { items: any; uploadFn: any; validateFn: any; changeListeners: any; constructor(props?: any); setProps: (props?: any) => void; getMediaItem: (id: any) => any; getSelectedItems: () => any; getItems: () => any; setItems: (items: any) => void; addMediaItem: (item: any) => void; addItems: (items: any) => void; selectMediaItem: (id: any) => boolean; selectAllItems: () => void; deselectMediaItem: (id: any) => void; deselectAllItems: () => void; removeMediaItem: (id: any) => void; removeItems: (ids?: any[]) => void; removeSelectedItems: () => void; removeErrorItems: () => void; removeAllItems: () => void; setMediaItemState: (id: any, state: any) => void; reuploadErrorItems: () => void; uploadItems: (ignoreError?: boolean) => void; createThumbnail: ({ id, file }: { id: any; file: any; }) => void; createInlineImage: (param: any) => void; handleUploadSuccess: (id: any, data: any) => void; applyChange: () => void; uploadImage: (file: any, callback: any) => void; uploadImageRecursively: (files: any, callback: any, index?: number) => void; addResolvedFiles: (param: any, index: any, accepts: any) => void; resolveFiles: (param: any, index: any, accepts: any) => void; onChange: (callback: any) => any; offChange: (listenerId: any) => void; }