mirror of
				https://github.com/Alfresco/alfresco-ng2-components.git
				synced 2025-10-22 15:11:57 +00:00 
			
		
		
		
	* [ADF-4152] Moved core library docs into subfolders * [ADF-4152] Moved core library docs into subfolders * [ADF-4152] Manual fixes to core doc file links * [ADF-4152] Further automatic + manual link tidying
		
			
				
	
	
	
		
			965 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			965 B
		
	
	
	
	
	
	
	
Title, Added, Status, Last reviewed
| Title | Added | Status | Last reviewed | 
|---|---|---|---|
| User Initial pipe | v2.0.0 | Active | 2018-11-12 | 
User Initial pipe
Takes the name fields of a UserProcessModel object and extracts and formats the initials.
Basic Usage
<div>
    Project Leader: {{ user | usernameInitials:"initialsClass" }}
</div>
Details
The pipe gets the initial characters of the user's first and last names and concatenates them. The results are returned in an HTML <div> element.
The first pipe parameter specifies an optional CSS class to add to the <div> element (eg, a background color is commonly used to emphasise initials). The second parameter is an optional delimiter to add between the initials. Both parameters default to empty strings.