Skip to main content

Menu Personalization

When initializing the SDK, you can add a menu parameter to add some settings.

Contact

You can add a contact method. At the moment, only phone is enabled. This adds a button with the link tel:XXX to make a phone call to the configured number.

Possible options:

KeyTypeDescription
kindStringContact method type. Currently supported: "phone".
valueStringContact value (e.g., phone number with country code).
textStringDescription text displayed to the user.
buttonTextStringLabel for the action button.

You can add extra links to the menu. Each link requires:

KeyTypeDescription
textStringLink label displayed to the user.
iconStringFont Awesome icon class.
urlStringLink destination URL.

Example

This is a complete example:

menu: {
contact: {
kind: "phone",
value: "+3400000000",
text: "You can call our call center",
buttonText: "Call us!"
},
links: [
{
text: "Support site",
icon: 'fas fa-question-circle',
url: "https://support.example.com"
}
]
}