You can find a working version of the full application here.
To get started with using the My Profile UI component on your HTML page, you will need three things:
{
"tenantCode": "dignity-health",
"theme": {
"font": {
"family": "",
"cssUrl": "https://use.typekit.net/dfg1mni.css"
},
"colorPalette": "dhcl-dignity-health"
},
"tealiumScriptSrc": "__TealiumScriptSrc__"
}
| Attribute | Description | Type | Required | App Default |
|---|---|---|---|---|
| tenantCode | Identifies the hosting app | string | false | none |
| theme | Overrides the theme | object | false | |
| > font | Overrides the font | object | false | |
| > > family | Overrides font-family of app & colorPalette | string | false | 'CSWeb-Regular', 'CSWeb-Light', |
| 'CSWeb-Medium', Arial, 'Helvetica | ||||
| Neue', Helvetica, sans-serif | ||||
| > > cssUrl | Url of file that declares all the font-faces | string | true (to have | none |
| of a font (default renders Trade Gothic Next) | default/custom font) | |||
| > colorPalette | One of a few known css classes that sets | string | false | dhcl-dignity-health |
| font-family, sizes & colors in the app. | ||||
| Current possible values: | ||||
| dhcl-dignity-health, dhcl-chi-health, | ||||
| dhcl-common-spirit, dhcl-virginia-mason, | ||||
| dhcl-neutral | ||||
| tealiumScriptSrc | Url of the script to register on the page to | string | false (true to | none |
| record user/site metrics | enable metrics) |
Once added to the page, your code snippet should look like this:
<dhmp-root configuration-url="[url to the json file]"></dhmp-root>
<script type="text/javascript" src="[url to app]/my-profile.js"></script>
Note:
npm install my-profile-ui-plugin
Import an entry of PersonalInformationModule into account-settings.module.ts.
Add the tag
<div class="column is-mobile">
<dhmp-app-personal-information></dhmp-app-personal-information>
</div>