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:
| Key | Type | Description |
|---|---|---|
kind | String | Contact method type. Currently supported: "phone". |
value | String | Contact value (e.g., phone number with country code). |
text | String | Description text displayed to the user. |
buttonText | String | Label for the action button. |
Extra links
You can add extra links to the menu. Each link requires:
| Key | Type | Description |
|---|---|---|
text | String | Link label displayed to the user. |
icon | String | Font Awesome icon class. |
url | String | Link 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"
}
]
}