DocSpace-client/packages/common/components/MediaViewer
2023-03-02 10:47:23 +05:00
..
helpers Web:Common:Components:MediaViewer:Helpers Fixed isSeparator type guard 2023-02-20 12:39:01 +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 Added ToolBar 2023-03-02 10:47:23 +05:00
types Web:Common:Components:MediaViewer:Types Updated type ContextMenuType 2023-02-13 18:17:12 +05:00
index.tsx Merge branch 'bugfix/spam-media-removal' of github.com:ONLYOFFICE/DocSpace into bugfix/spam-media-removal 2023-02-15 13:10:24 +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