Takes the name fields of a UserProcessModel object and extracts and formats the initials.
<div> Project Leader: {{ user | usernameInitials:"initialsClass" }} </div>
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.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.