File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
packages/mgt/src/components/mgt-person Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -836,7 +836,14 @@ export class MgtPerson extends MgtTemplatedComponent {
836836 return person && person . personImage ? person . personImage : null ;
837837 }
838838
839- private getInitials ( person ?: IDynamicPerson ) {
839+ /**
840+ * Gets the user initials
841+ *
842+ * @protected
843+ * @returns {string }
844+ * @memberof MgtPerson
845+ */
846+ protected getInitials ( person ?: IDynamicPerson ) : string {
840847 if ( ! person ) {
841848 person = this . personDetails ;
842849 }
@@ -947,7 +954,15 @@ export class MgtPerson extends MgtTemplatedComponent {
947954 }
948955 }
949956
950- private getColorFromName ( name ) {
957+ /**
958+ * Gets color from name
959+ *
960+ * @protected
961+ * @param {string } name
962+ * @returns {string }
963+ * @memberof MgtPerson
964+ */
965+ protected getColorFromName ( name : string ) : string {
951966 const charCodes = name
952967 . split ( '' )
953968 . map ( char => char . charCodeAt ( 0 ) )
Original file line number Diff line number Diff line change 88
99<p align =" center " >
1010 <a href =" https://www.npmjs.com/package/@microsoft/mgt " ><img src =" https://img.shields.io/npm/v/@microsoft/mgt.svg " ></a > <a href =" https://github.com/microsoftgraph/msgraph-sdk-javascript " ><img src =" https://img.shields.io/badge/code_style-prettier-ff69b4.svg " ></a > <a href =" https://stackoverflow.com/questions/tagged/microsoft-graph-toolkit " ><img src =" https://img.shields.io/stackexchange/stackoverflow/t/microsoft-graph-toolkit.svg " ></a >
11- <a href =" https://dev.azure.com/microsoft-graph-toolkit/microsoft-graph-toolkit/_build/latest?definitionId=1&branchName=main " ><br ><img src =" https://dev.azure.com/microsoft-graph-toolkit/microsoft-graph-toolkit/_apis/build/status/microsoftgraph.microsoft-graph-toolkit?branchName=main " ></a > <a href =" https://www.webcomponents.org/element/@microsoft/mgt " ><img src =" https://img.shields.io/badge/webcomponents.org-published-blue.svg " ></a > <a href =" https://mgt.dev " ><img src =" https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg " ></a >
11+ <a href =" https://dev.azure.com/microsoft-graph-toolkit/microsoft-graph-toolkit/_build/latest?definitionId=1&branchName=main " ><br ><img src =" https://dev.azure.com/microsoft-graph-toolkit/microsoft-graph-toolkit/_apis/build/status/microsoftgraph.microsoft-graph-toolkit?branchName=main " ></a > <a href =" https://www.webcomponents.org/element/@microsoft/mgt " ><img src =" https://img.shields.io/badge/webcomponents.org-published-blue.svg " ></a > <a href =" https://mgt.dev " ><img src =" https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg " ></a > < a href = " https://github.com/microsoftgraph/microsoft-graph-toolkit/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 " >< img src = " https://img.shields.io/github/issues/microsoftgraph/microsoft-graph-toolkit/good%20first%20issue?color=brightgreen " ></ a >
1212</p >
1313
1414<p align =" center " >
You can’t perform that action at this time.
0 commit comments