Skip to main content

Solvvy Settings

The client-side settings window.SolvvySettings object can be used to change the properties of the Solvvy Widget embedded in your site. It is loaded only during the Solvvy initialization. If you need to update the settings at run-time, please use the updateSettings API method.

Available settings

offset

Moves the widget horizontally and vertically.

Usage

The offset property consists of an object with horizontal and vertical properties with '##px' string values (the default is '0px').

<script type="text/javascript">
window.SolvvySettings = {
offset: {
horizontal: '10px',
vertical: '10px'
}
};
</script>

To specify an offset for mobile devices, add a mobile property to the offset object, and specify horizontal and vertical values.

Example

<script type="text/javascript">
window.SolvvySettings = {
offset: {
horizontal: '10px',
vertical: '10px',
mobile: {
horizontal: '20px',
vertical: '20px'
}
}
};
</script>

position

Position to show the widget.

Usage

Possible values for position are bottom-left, bottom-right and full-screen.

<script type="text/javascript">
window.SolvvySettings = {
position: 'bottom-left'
};
</script>

showWidget

Visibility of the launcher button.

Usage

Possible values for showWidget are

  • always - Always shows the launcher button.
  • never - Never shows the launcher button. Solvvy can be opened using the open API method, and once the close button is clicked, the launcher button will not be shown.
  • after-open - The launcher button will not be shown until Solvvy is opened. Once opened, the launcher button will continue to show.
<script type="text/javascript">
window.SolvvySettings = {
showWidget: 'never'
};
</script>