Class gui.Avatar
Defined in: Avatar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gui.Avatar(parentElement, avatarInitiallyVisible)
The avatar is a passive element that can be displayed above an element.
|
Method Attributes | Method Name and Description |
---|---|
destroy(callback,)
|
|
hide()
|
|
markAsFocussed(isFocussed)
|
|
setColor(color)
|
|
setImageUrl(url)
|
|
show()
|
Class Detail
gui.Avatar(parentElement, avatarInitiallyVisible)
The avatar is a passive element that can be displayed above an element.
It will always keep a relative distance to that element, so automatically
move around with the parent element.
- Parameters:
- {!Element} parentElement
- {boolean} avatarInitiallyVisible
- Sets the initial visibility of the avatar
Method Detail
{undefined}
destroy(callback,)
- Parameters:
- {!function(!Error=)} callback,
- passing an error object in case of error
- Returns:
- {undefined}
{undefined}
hide()
- Returns:
- {undefined}
{boolean}
isVisible()
- Returns:
- {boolean}
{undefined}
markAsFocussed(isFocussed)
- Parameters:
- {boolean} isFocussed
- Returns:
- {undefined}
setColor(color)
- Parameters:
- {!string} color
setImageUrl(url)
- Parameters:
- {!string} url
{undefined}
show()
- Returns:
- {undefined}