DocSpace-buildtools/packages/common/components/MediaViewer
2023-03-14 14:15:43 +04: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:Components:MediaViewer:Sub-Components:ImageViewer Fixed the wheel event and removed useless code 2023-03-06 11:59:41 +05:00
types Web:Common:Components:MediaViewer:Types Updated type ContextMenuType 2023-02-13 18:17:12 +05:00
index.tsx Web: Fix some translations issues 2023-03-14 14:15:43 +04: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