Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

🔹 Description

Description

Image RemovedProfile Image is component that gives additional information about a person. It has the user’s image, additional information like location, tenureship, and reports to. This component has also a variation where you can upload and crop your image according to your preference.

Image Added

Image Cropper:

...

The package can be installed via npm empower-profile-image:

Code Block
npm i empower-profile-image --save

...

Parameter

Data Type

Constraint

Description

size

String

Required

Sets the size of the image in the component.

url

String

Optional

Sets the link of the image should be used (example: CDN)

placeholder

String

Required

Sets the Initial name of the employee if no URL or image provided in config.

first_name

String

Required

Sets the first name of employee.

last_name

String

Required

Sets the last name of employee.

job

String

Required

Sets the job or position of employee.

department

String

Required

Sets the department of employee.

site

String

Required

Sets the site of the employee.

employeeNumber

String

Required

Sets the given employee number

tenure

Object

Required

Sets the tenurity of employee.

It should consist of:

  • year (String)

  • month (String)

reportingTo

Object

Required

Sets the details of manager/supervisor who employee reports to

It should consist of:

  • url (String)

  • placeholder (String)

  • first_name (String)

  • last_name (String)

  • job (String)

🔹 References

Repository Link: https://gitlabbitbucket.comorg/empowerteams/empower-profile-image.git/src/master/

NPM Package: https://www.npmjs.com/package/empower-profile-image

...