• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

directive for the letter avatar for the given string like gmail, first letter of the given data will be the avatar .

For the latest Angular, added ngletteravatar component to the ngu-utility, use ngu-utility for the latest angular2 or above versions

ng-letter-avatar Build Status

Gitter

AngularJS directive for simple data avatar like gmail/inbox. demo preview snaps :

demo demo demo demo demo demo demo demo demo demo

Quick start

bower install ngletteravatar or npm install ngletteravatar

or alternatively download and include ngletteravatar.js after angular.min.js. minified version ngletteravatar.min.js is under dist folder.

Add the ngLetterAvatar module as a dependency when creating your app, e.g.

var app = angular.module('myApp', ['ngLetterAvatar']);`

NO NEED TO INJECT in controller directly use in html.

Rendering

<p>
  <small>
     <ng-letter-avatar data="uttesh"></ng-letter-avatar>
  </small>
</p>

Option attirbutes

You can affect how letteravatar operates with the following settings:

name default description
avatarcustombgcolor No default value Using this attribute set the custom color for avatar background.
dynamic false Set this attribute to true if dynamically avatar needs to be generated on data change.
rotatedeg 0 Set this attribute required degrees of rotation of the avatar.
alphabetcolors default color set Using this attribute set the custom colors for the alphabets only.
charCount 1 Specifies the number of letters to displayed. to generate combined letter avatar of first name and last name which are separated by space then set the value to '2'
data Input data i.e. email, names...etc -OR- If image already exists for item, set image URL or image data
height 50px set the height for the avatar
width 50px set the width for the avatar
fontWeight 400 set the font weight for the avatar
fontSize 30px set the font size for the letter
shape square set the shape for the avatar. set 'round' for rounded avatars
fontFamily HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica, Arial,Lucida Grande, sans-serif set the font Family of the avatar.
avatarborder false set the avatarborder to 'true' for the white border to avatar.
avatarcustomborder no default value using this attribute set the custom style to avatar borders i.e "border:5px solid black".

Contributions

For problems/suggestions please create an issue on Github.

Contributors

License

The MIT License

Copyright (c) 2015 Uttesh Kumar T.H. http://www.uttesh.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

JmeterAPISample

POC sample for load testing by jmeter api java code instead of gui and generating the jmx and csv reports
Java
30
star
2

pdfngreport

This is the pdf report plugin library written for testng/selenium frameworks, this listener will generate the pdf report on testcases execution, its very simple to configure no need to write any code.
Java
30
star
3

ngtimeago

time ago angularjs plugin allow to show the time in human readable format....for example like few time ago,,,,,hours ago,,,,etc
JavaScript
28
star
4

exude

Simple java library to filter the stopping,stemming words from input data or file and link
Java
21
star
5

ionic-letteravatar

letter avatar for the ionic application, its replica of previous directive "ngletteravatar" slightly modified for the ionic framework
JavaScript
17
star
6

mo

mo.js is cli application to remove the unused node_modules from the system
JavaScript
15
star
7

ngu-utility

The utility components,service,directives and pipes for Angular.
TypeScript
10
star
8

nest-mongo-generic

simple NESTJS + MONGOOSE boiler plate with generic controller and service implementations
TypeScript
9
star
9

ngreactions

Is an Angular directive for reactions like rating on services, which will allow customers to choose the reaction on the service like the latest facebook reactions, its fully customizable directive, can integrate any images instead of default.
CSS
8
star
10

elasticsearch

elastic search 2.x java sample code on CRUD,bulk import,bulk export, files....etc
Java
7
star
11

Selenium-testng-highcharts

Simple selenium sample to test the highchats http://www.highcharts.com/
Java
5
star
12

spring-angular-template

Simple Spring 4 + Jersey + MongoDB + AngularJS + Gulp + Maven starter template application
Java
3
star
13

ngu-mx-table

simple matrix table to show the data in the customized boxes, images and forms
TypeScript
3
star
14

selenium-flash-testng

selenium-flash-testng is a selenium automation sample for testing the flash web appliaction by using the sikuli java api
Java
3
star
15

ng2letteravatar

This component is moved to ngu-utility module
TypeScript
3
star
16

nggentle

Simple angularJS module plugin which will filter out bad/swear word from input static data. simple directives here will show the bad word on type and service 'paragraph' with 'isGentle' method, method will take input string and find the bad/swear worlds if found return the list of bad words in input text, it checks around thousand bad/swear words and can be filtered.
JavaScript
3
star
17

AngularJERSEYRESTSpringSecurityTemplate

Basic template for web application with front end angularJS framework and REST as backend with spring security, With Bootstrap 3.0 css and fontAwesome
2
star
18

mywallet

Its a simple react app to demonstrate the use of react hooks and context API with react 16.x
JavaScript
1
star
19

tagtitle

Tag Title is jquery plugin used to tag the title attribute in your component on image or any thing.
JavaScript
1
star
20

SpringHibernateUploader

Upload a file and store into mysql database.
1
star
21

deno

deno sample applications.
TypeScript
1
star
22

mavenrepos

1
star
23

exude-api

Exude API provide the service to filter the stopping,swear words on the provided file,data and link and it uses the in house exude jar to filter the data
Java
1
star
24

JAX-WS-Provider-Based-Endpoints

Simple JAX-WS provider webservice implemetation, as we know this type implementation is required only when there is huge xml file data input, JAXB will be performance pain for huge xml data.
1
star
25

soap-spring-xsd-ws

This is simple Web service implementation using SOAP and Spring with XSD file for service document object generation using JAXB.
1
star
26

avis

slack app for the monitoring the user activity
JavaScript
1
star