Interface AvatarProperties

Properties for SVICustomElement.Avatar.

<svi-avatar
[identity]="identity"
[size]="SizeType.XLarge"
[isIcon]="true"
[isButton]="true"
></svi-avatar>
const identityAvatar = document.createElement(SVICustomElement.IdentityAvatar);
identitySelect.identity = this.identity;
identitySelect.size = SizeType.XLarge;
identitySelect.isButton = true;
interface AvatarProperties {
    identity: AvatarData;
    imgSrcUrl?: string;
    isButton?: boolean;
    isIcon?: boolean;
    size?: SizeType;
}

Properties

identity: AvatarData

The identity of the user, including name, userID, user type, and any tooltips. (required)

imgSrcUrl?: string

The user's photo, if provided.

isButton?: boolean

Specifies if the avatar is a clickable button.

isIcon?: boolean

Specifies whether the avatar displays an icon (user or group) or a non-icon (initial or image).

size?: SizeType

Specifies the size styling the avatar should use.