components.ProfileBadge Class
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
Parameters:
-
propsObject-
usermodels.client.User -
[size=50]Number optional -
[padding=4]Number optional -
[tipPlacement=right]String optional
-
Item Index
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
()
Image size is available only after the image is loaded. Load the image and read it to the state.
