AvatarMixin

external interface AvatarMixin : I18nMixin, FocusMixin

A mixin providing common avatar functionality.

Inheritors

Properties

Link copied to clipboard
abstract var abbr: String

A shortened form of name that is displayed in the avatar when img is not provided.

Link copied to clipboard
abstract var colorIndex: Double

Color index used for avatar background.

Link copied to clipboard
abstract var i18n: JsAny

The object used to localize this component. To change the default localization, replace this with an object that provides all properties, or just the individual properties you want to change.

Link copied to clipboard
abstract var img: String

The path to the image

Link copied to clipboard
abstract var name: String

Full name of the user used for the tooltip of the avatar.

Link copied to clipboard
abstract var withTooltip: Boolean

When true, the avatar has tooltip shown on hover and focus. The tooltip text is based on the name and abbr properties. When neither is provided, i18n.anonymous is used instead.