0.0.11 • Published 4 years ago
rvsr-avathar v0.0.11
RvsrAvathar
This library was generated with Angular CLI version 9.1.12. This library is used to shorten the full name for the good visual feel.
Example
Getting started
Install by using command npm i rvsr-avathar
Import the rvsr-avathar module into your apps module:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RvsrAvatharModule } from 'rvsr-avathar'
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
RvsrAvatharModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
In HTML template
<rvsr-avathar
[fullName]='fullName'
[backgroundColor]='backgroundColor'
[size]='size'
[fontSize]='fontSize'
[avatharTextColor]='avatharTextColor'
></rvsr-avathar>
##Options
fullName: A Name which needs to get shorten backgroundColor: Background color size: Size of the avathar(px) fontSize: Font size of the text avatharTextColor: Color of the text
##Usage
• Full name in table • In email Id • Profile Information etc...