UserImage

If the user didn't upload a photo, the UserImage will generate a fallback image based on his or her name.

You can initialize a UserImage by assigning data-ts="UserImage" to an img element. A fallback image will be generated based on the users name if the image has no src attribute or if the image somehow failed to load. You also can define initials in parentheses. For example:Karl Alfonso Benson (KB), you will get KB as an initials

The image defaults to a size of 44x44 pixels. If you prefer a different size, you'll need to specify both width and height as attributes in the HTML.

  • <img ts-userimage alt="Trip Fontaine" width="88" height="88"/>

You can select users from a menu by adding the classname ts-user-menu to a standard Menu while also replacing the icon (i element) with a UserImage.

JSON API

In case you need to work with the JSON model of an UserImage directly, this is all you need to know:

If you find a bug or need a feature…

  • Create GitHub Issue…