Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uttesh/ionic-letteravatar
letter avatar for the ionic application, its replica of previous directive "ngletteravatar" slightly modified for the ionic framework
https://github.com/uttesh/ionic-letteravatar
Last synced: about 7 hours ago
JSON representation
letter avatar for the ionic application, its replica of previous directive "ngletteravatar" slightly modified for the ionic framework
- Host: GitHub
- URL: https://github.com/uttesh/ionic-letteravatar
- Owner: uttesh
- License: mit
- Created: 2015-10-06T06:03:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T18:22:46.000Z (almost 8 years ago)
- Last Synced: 2024-11-10T14:55:15.337Z (6 days ago)
- Language: JavaScript
- Homepage: http://uttesh.github.io/ionic-letteravatar
- Size: 541 KB
- Stars: 17
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ionic-letter-avatar Demo
AngularJS directive for simple data avatar like gmail/inbox.
## Quick start
```
bower install ionic-letter-avatar
```or alternatively download and include `ionic-letteravatar.js` after `angular.min.js`.
Add the `ionic-letter-avatar` module as a dependency when creating your app, e.g.
```
var app = angular.module('myApp', ['ionic-letter-avatar']);`
```NO NEED TO INJECT in controller directly use in html.
## Rendering
```
```## Option attirbutes
You can affect how letteravatar operates with the following settings:
name | default | description
-----|---------|------------
`charcount` | 1 | Specifies the number letters to displayed.
`data` | | input 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
* [@uttesh](https://twitter.com/uttesh)
# 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.