DocSpace-client/packages/common/components/MediaViewer
2023-03-07 12:50:52 +03:00
..
helpers Web:Common:Components:MediaViewer Renamed the ActionType to the Toolbar Action Type and add a zoom reset action 2023-03-02 19:28:22 +05:00
StyledComponents Web:Common:Components:MediaViewer:StyledComponents: Added entry point index.ts 2023-02-18 23:05:31 +05:00
sub-components Web:Common:MediaViewer: add delay for set original image 2023-03-07 12:50:52 +03:00
types Web:Common:MediaViewer: add thumbnail for images and cache with indexedDB 2023-03-06 18:17:21 +03:00
index.tsx Merge branch 'develop' into feature/refactoring-viewer-base 2023-03-02 20:00:26 +05:00
MediaViewer.props.ts Web:Common:Components:MediaViewer Updated type getIcon 2023-02-13 13:46:50 +05:00
MediaViewer.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

MediaViewer

Used to open media files

Usage

import MediaViewer from "@docspace/common/components/MediaViewer";
<MediaViewer
  allowConvert={allowConvert}
  canDelete={canDelete}
  visible={visible}
  playlist={playlist}
  onDelete={onDelete}
  onDownload={onDownload}
  onClose={onClose}
  extsMediaPreviewed={extsMediaPreviewed}
  extsImagePreviewed={extsImagePreviewed}
/>

Properties

Props Type Required Values Default Description
allowConvert bool true
visible bool false
canDelete function
playlist array
onDelete function
onDownload function
onClose function
extsMediaPreviewed array
extsImagePreviewed array