ui:avatar
Purpose
This tag renders an a user avatar image.
The avatar will be retrieved by the UI Set implementation from a remote service or other mechanism. Some systems may require an email address, others an account user name. The application and plugins will need to know what value to use - but the way you pass this identity in is predefined here.
Example
1 | < ui:avatar user = "marc@grailsrocks.com" size = "50" rating = "G" title = "An avatar" alt = "This is an Avatar" /> |
The user attribute can contain any value as appropriate for the underlying avatar mechanism the UI Set uses.
Attributes
Name | Required? | Description |
---|---|---|
user | yes | The user id (typically email address) that is used to retrieve the avatar image |
size | The size in pixels of the avatar. Avatars are assumed to be square | |
defaultSrc | An absolute URL pointing to the default image to use if the user has no avatar |