You can find a working version of the full application here.
To get started with using the FAD SAAS Widget (FAD Lite) on on your HTML page, you will need three items:
/search/doctors
.Once added to the page, your code snippet should look like this:
<fad-saas configuration-url="/site-assets/fad-configuration.json" base-url="/search/doctors" enable-fad-lite="true"></fad-saas>
<script type="text/javascript" src="https://fad.dignityhealth.org/fad-saas.js"></script>
If we set the enable-fad-lite="true" as shown above, it will load FAD Lite landing page. If we set to "false" it will load FAD landing page
Please note that the order of the elements is important, and the custom element should come first.
There are options available to further customize the behavior of the application. They are added as attributes on the custom element that you included in the browser, and are not required for the component to function.
Attribute | Description | Type |
---|---|---|
configuration-url |
Path to the JSON file that you provide | string |
base-url |
Path for FAD SaaS landing page | string |
enable-fad-lite |
Flag for Fad-lite enable | boolean |
True - loads Fad-lite | ||
False - loads Fad SPA |