aurelia-gravatar-component
v0.0.4
Published
A starter kit for building an Aurelia plugin.
Downloads
14
Readme
aurelia-gravatar-component
This library is a plugin for the Aurelia platform.
Simple gravatar component for Aurelia. Based on these specs: https://secure.gravatar.com/site/implement/images/
Usage
It globalizes a custom element. A very simple example which should get you going.
<gravatar
email.bind="vm.email"
size.bind="200"
rating="x"
secure.bind="true">
</gravatar>
Bindable properties
[string=''] Used to determine what gravatar to fetch from gravatar's api.
size
[number=200] The size of a side in pixels of the square gravatar image.
rating
[string='g']
gsuitable for display on all websites with any audience type.pgmay contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.rmay contain such things as harsh profanity, intense violence, nudity, or hard drug use.xmay contain hardcore sexual imagery or extremely disturbing violence.
forceDefault
[boolean=false] When true always loads the default image instead of the user uploaded one.
defaultTo
[string="monsterid"] The image to fetch when user has not been found. These can be the following options.
404mmidenticonmonsteridwavatarretroblank.
secure
[boolean=false]
Whether to perform request over https
