用于 Ember 应用程序的高级头像生成器。初始字母 Ⓜ、图像、头像和可爱头像 为您的用户配置文件所需的一切!
Ember Initials is a package for generating simple avatars using users initials, images, gravatars or adorables. It definitely supports Ember 3.16 (or higher). Thanks to highly customizable interface you can define defaults and even set fallbacks.
Demo app with interactive examples you can find at http://exelord.github.io/ember-initials
This addon has been tested on:
ember install ember-initials
Ember Initials gives you a built-in components which you can use in yours templates:
or
Examples, configuration and code generator are available on Project Site.
EmberInitialsimage - image url | if image will be not found the initials avatars will be used
name - name of user to generate initials
defaultName - if name will be not passed this name will be used
seedText - uniq string which will be used to generate background color, eg. user's email
textColor - color of the text (initials) | hash or name
fontSize - font size in px
fontWeight - font weight in px
fontFamily - names of fonts with fallbacks | at this time only system fonts can be used
size - size of the avatar in pixels (set null if you do not want to use elements attributes like width and height)
EmberInitials::Imageimage - image url | if image will be not found the defaultImage will be used
defaultImage - default image url
size - size of the avatar in pixels (set null if you do not want to use elements attributes like width and height)
EmberInitials::Gravatarimage - image url | if image will be not passed the avatar will be generated form email thanks to gravatar
email - Email which will be used to fetching the gravatar
defaultImage - image src (relative or absolute URL depends on relativeUrl option) | if gravatar will not be found this image will be used
relativeUrl - true or false | decide which defaultImage url do you want to use - relative or absolute
size - size of the avatar in pixels (set null if you do not want to use elements attributes like width and height)
EmberInitials::Adorableimage - image url | if image will be not found the avatar will be generated form email thanks to adorable
email - Email which will be used to generating unique adorable avatar
size - size of the avatar in pixels (set null if you do not want to use elements attributes like width and height)
暂无开放 Issues,或尚未同步最近议题。