API Docs for:
Show:

components.ProfileBadge Class

Defined in: bundle.js:1346
Module: filesize

Display profile image in badge which is constrained by maxWidth and maxHeight props. Profile is resized to fit into it while keeping the correct aspect ratio.

Constructor

components.ProfileBadge

(
  • props
)

Defined in bundle.js:1346

Parameters:

  • props Object
    • user models.client.User
    • [size=50] Number optional
    • [padding=4] Number optional
    • [tipPlacement=right] String optional

Methods

resolveRealImageSize

()

Image size is available only after the image is loaded. Load the image and read it to the state.

resolveRealImageSize

()

Image size is available only after the image is loaded. Load the image and read it to the state.

resolveRealImageSize

()

Defined in bundle.js:1389

Image size is available only after the image is loaded. Load the image and read it to the state.