Developer/IT > Whisbi API > API Reference > One-to-One > Styles

Styles

The styles specific to the One-to-One widget

NameDescriptionRequired
body whisbi.OneToOneBodyStylesConfig The styles of the OTO body of the templates Optional
liveHelpRibbon whisbi.OneToOneLiveHelpRibbonStylesConfig The styles of the label placed above the agent’s image on the floating button. Optional
floatingButton whisbi.OneToOneFloatingButtonStylesConfig An object containing the floating button config Optional

Body styles

The styles of the One-to-One templates

NameDescriptionRequired
backgroundColor String Background color of the One-to-One widget. This background is always visible except when the videowalk or some media is being shared during a One-to-One session. It uses the same format as the CSS property background-color. Optional
backgroundImage whisbi.BackgroundImageConfig Background image of the One-to-One widget. Applies in the same cases as backgroundColor. Optional

Background image

A background image configuration

NameDescriptionRequired
url String The URL of the background image Mandatory
repeat String The value of the CSS background-repeat property for the background image. Optional
Default: repeat
size String The value of the CSS background-size property for the background image. Optional
Default: auto
position String The value of the CSS background-position property for the background image. Optional
Default: center

Live Help Ribbon styles

The styles of the label placed above the agent’s image on the floating button.

NameDescriptionRequired
backgroundColor String The background color of the label Optional
textColor String The text color color of the label Optional

Floating Button

The styles of the floating button

NameDescriptionRequired
onMobile whisbi.OneToOneFloatingButtonOnMobileConfig An object containing the behavior properties of the widget when the page loads on mobile. Optional

Maximum Agents Floating button

The styles of the floating button

NameDescriptionRequired
maxUserPictures string Maximum number of agent images to be displayed within the floating button Optional
Default: 3