📲Element display

This page outlines how to get the XCE panel displayed on your web platform

Place a custom HTML element in the desired location in your HTML template. This is where the protection panel will be loaded by XCE.

<!-- protection-offer example -->
<xce-protection-offer></xce-protection-offer>

The element name can change. The correct name will be provided to you during onboarding.

Using custom attributes

XCE allows partners to use custom HTML attributes on the element to update the state such as UI, provide data for quote retrieval and more. Custom attributes will be referenced in their specific integration guides.

For example, in our protection-offer example we have the selected attribute that pre-selects one of the radio input options of the element.

The following custom attributes are just to showcase a scenario and might not be available on your integration.

Please refer to your CSE regarding the available custom attributes for your element.

<!-- custom attributes example -->
<!-- with 'yes protection' pre-selected -->
<xce-protection-offer selected="accept"></xce-protection-offer>

<!-- with 'no protection' pre-selected -->
<xce-protection-offer selected="reject"></xce-protection-offer>

Last updated