Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Applying settings

Settings are applied to the messaging messenger client via dataset attributes on the custom element. For example to change the stylesheet:

Code Block
languagehtml
<send2crm-messagingmessenger data-stylesheet="/my_styles.css" />

Settings may also be changed via script after loading. This will cause the messaging messenger element to re-render.

Code Block
languagejs
document.querySelector('send2crm-messagingmessenger').dataset.stylesheet = 'my_other_styles.css';

Available settings

Name

Default

Description

heading

Leave a message

Displayed at the top of the expanded UI.

stylesheet

(script root)/send2crm-messager.min.css

Applied within the shadow DOM of the messaging messenger element.

senderror

Failed to send message.

Tooltip/title displayed on input when a message send fails.

maxdays

60

Number of days previous messages to display.

rapidfreq

15

Number of seconds between rapid visitor updates during active messaging.

rapidcount

4

Number of rapid visitor updates to make before falling back to standard visitor update frequency, unless further messaging activity occurs.

...