DocSpace-buildtools/web/ASC.Web.Components/src/components/avatar-editor
2019-09-24 17:00:17 +03:00
..
sub-components web: components: new version of a avatar editor 2019-09-24 17:00:17 +03:00
avatar-editor.stories.js web: components: new version of a avatar editor 2019-09-24 17:00:17 +03:00
avatar-editor.test.js web: components: Moved story for AvatarEditor + added base test 2019-09-06 12:22:21 +03:00
index.js web: components: new version of a avatar editor 2019-09-24 17:00:17 +03:00
README.md web: components: new version of a avatar editor 2019-09-24 17:00:17 +03:00

Avatar Editor

Usage

import { AvatarEditor } from 'asc-web-components';

Description

Required to display user avatar editor on page.

Usage

<AvatarEditor
  visible={true}
  onSave={(data) =>{console.log(data.croppedImage, data.defaultImage)}}
/>

Properties

Props Type Required Values Default Description
visible bool - false Display avatar editor or not
chooseFileLabel string - Choose a file
headerLabel string - Edit Photo
saveButtonLabel string - Save
cancelButtonLabel string - Cancel
maxSize number - 1 Max size of image
onSave function -
onClose function -