45 |
![]()
55 |
56 |
57 | {{ avatarText }}
58 |
59 |
60 |
61 | `
62 | })
63 | export class AvatarComponent implements OnChanges, OnDestroy {
64 | @Input()
65 | public round = true;
66 | @Input()
67 | public size: string | number = 50;
68 | @Input()
69 | public textSizeRatio = 3;
70 | @Input()
71 | public bgColor: string | undefined;
72 | @Input()
73 | public fgColor = '#FFF';
74 | @Input()
75 | public borderColor: string | undefined;
76 | @Input()
77 | public style: Style = {};
78 | @Input()
79 | public cornerRadius: string | number = 0;
80 | @Input('facebookId')
81 | public facebook?: string | null;
82 | @Input('twitterId')
83 | public twitter?: string | null;
84 | @Input('googleId')
85 | public google?: string | null;
86 | @Input('instagramId')
87 | public instagram?: string | null;
88 | @Input('vkontakteId')
89 | public vkontakte?: string | null;
90 | @Input('skypeId')
91 | public skype?: string | null;
92 | @Input('gravatarId')
93 | public gravatar?: string | null;
94 | @Input('githubId')
95 | public github?: string | null;
96 | @Input('src')
97 | public custom?: string | null;
98 | @Input('name')
99 | public initials?: string | null;
100 | @Input()
101 | public value?: string | null;
102 | @Input()
103 | public placeholder?: string;
104 | @Input()
105 | public initialsSize: string | number = 0;
106 |
107 | @Output()
108 | public clickOnAvatar: EventEmitter