When the ROBIN script is loaded, it checks for the existence of a property named robin_settings
on the current page (window scope). When such a property exists, its values are combined with the properties of the values that are configured in the ROBIN app. All properties that exist in the robin_settings
object have a higher priority, hence the configured properties can be overruled. So, for instance it is possible to hide a tab on a specific page. The following recommended properties are supported:
Property | Discription | Possible values |
---|---|---|
tab_theme, mobile_tab_theme | The theme of the tab (on a mobile site) | light, dark, grey, blue, red |
tab_style, mobile_tab_style | The style of the tab (on a mobile site) | single-tab, channel-tab, floating-tab |
tab_position, mobile_tab_position | The position of the tab (on a mobile site) | right, left, bottom-right, bottom-left |
hide_tab, mobile_hide_tab | Indicates whether a tab should be hidden (on a mobile site). This is a separate property and not combined with position like the ROBIN app configuration. It is possible to have a hidden tab and let the position property specify where the dialog is positioned in case it is requested manually. | true, false. The default value depends on configured position. |
animateTab | Indicates whether the tab appears animated when appropriate. | true (default), false |
animatePopups | Indicates whether pro active chat (PAC) dialogs appear animated when appropriate. | true (default), false |
tabAnimationDelayInSeconds | The number of seconds before the tab appears, only relevant when shown animated. | an integer, default is 2 |
tabAnimationDurationInSeconds | The number of seconds the animation of the tab lasts, only relevant when shown animated. | an integer, default is 1 |