“Social Signal” Component
Social signals are small messages that appear for visitors near the bottom of a page to get them to sign up to our platform. The message is created using JS and is called through JS.
Usage
import {SocialSignal} from 'modules/socialSignal.js';
SocialSignal.info('Custom social signal message, 'font-awesome icon class', settingsObject);
Settings Object
-
closeButtonbool
Whether or not to display a close button.
Default Value:
1
-
containerIdstring
The id of social signals container.
Default Value:
socialSignalsContainer
-
onClosefunction
Callback for onClose Event.
-
socialSignalClassstring
The class to be applied to Social signal element.
Default Value:
socialSignalClass
-
tapToDismissbool
Use tap/click to close signal.
Default Value:
false
-
targetSelectorstring
Selector for signals container.
Default Value:
body
-
timeOutint
Set timeOut and extendedTimeOut to 0 to make it sticky.
Default Value:
6500
-
newestOnTopbool
Display newest signals at the top.
Default Value:
false