Jump to: navigation, search
(Update with the copy of version: draft)
(Update with the copy of version: draft)
Line 30: Line 30:
 
! Type
 
! Type
 
! Description
 
! Description
 +
! Accepted Values
 
! Default
 
! Default
 
! Required
 
! Required
Line 36: Line 37:
 
| string
 
| string
 
| Selects between overlay and toaster display modes.
 
| Selects between overlay and toaster display modes.
 +
| 'overlay', 'toaster'
 
| toaster
 
| toaster
 
| false
 
| false
Line 41: Line 43:
 
| offers.layout
 
| offers.layout
 
| string
 
| string
| For the 'overlay' display container; sets the text on the right or left side of the image/video.
+
| For the 'overlay' display container, sets the text on the right or left side of the image/video.
 +
| 'leftText', 'rightText'
 
| leftText
 
| leftText
 
| false
 
| false
Line 50: Line 53:
 
| n/a
 
| n/a
 
| n/a
 
| n/a
 +
| false
 
|-
 
|-
 
| offers.headline
 
| offers.headline
 
| string
 
| string
 
| A headline string displayed in larger text above the body.
 
| A headline string displayed in larger text above the body.
 +
| n/a
 
| n/a
 
| n/a
 
| false
 
| false
Line 60: Line 65:
 
| string
 
| string
 
| The main text body of the offer.
 
| The main text body of the offer.
 +
| n/a
 
| n/a
 
| n/a
 
| false
 
| false
Line 66: Line 72:
 
| string
 
| string
 
| A short string to be displayed inside the CTA button.
 
| A short string to be displayed inside the CTA button.
 +
| n/a
 
| n/a
 
| n/a
 
| false
 
| false
Line 72: Line 79:
 
| string
 
| string
 
| A URL to open when the user clicks on the image or CTA button.
 
| A URL to open when the user clicks on the image or CTA button.
 +
| n/a
 
| n/a
 
| n/a
 
| true
 
| true
Line 78: Line 86:
 
| string
 
| string
 
| A URL of an image to be displayed in the offer.
 
| A URL of an image to be displayed in the offer.
 +
| n/a
 
| n/a
 
| n/a
 
| false
 
| false
Line 84: Line 93:
 
| string
 
| string
 
| A URL of a YouTube or Vimeo video to be displayed in the offer. This will replace and image if an image URL is present. Warnings will be present in the JavaScript console if the video URL is not valid.
 
| A URL of a YouTube or Vimeo video to be displayed in the offer. This will replace and image if an image URL is present. Warnings will be present in the JavaScript console if the video URL is not valid.
 +
| n/a
 
| n/a
 
| n/a
 
| false
 
| false
Line 90: Line 100:
 
| integer
 
| integer
 
| Sets a timeout, in milliseconds, after which offers widget will close if there is no interaction.
 
| Sets a timeout, in milliseconds, after which offers widget will close if there is no interaction.
 +
| positive integers
 
| 15000
 
| 15000
 
| false
 
| false
Line 96: Line 107:
 
| boolean
 
| boolean
 
| An option to enable loading of 3rd party video libraries. Needs to be set to true in order to show videos inside an offer. Note: this option is only available in the static config, passing this along with the open parameter will not work.
 
| An option to enable loading of 3rd party video libraries. Needs to be set to true in order to show videos inside an offer. Note: this option is only available in the static config, passing this along with the open parameter will not work.
 +
| true/false
 
| false
 
| false
 
| n/a
 
| n/a

Revision as of 17:12, July 27, 2018

Configuration

Description

Offers holds the configuration namespace '_genesys.widgets.offers' which contains UI options.

Example

window._genesys.widgets.offers = {

	offers: {

		mode: 'overlay',
		layout: 'leftText',
		title: 'Offer Title',
		headline: 'This is the offer's headline',
		body: 'This is the offer's body',
		button: 'Accept Offer',
		ctaURL: 'http://www.genesys.com',
		video: 'https://www.youtube.com/watch?v=########',
		timeout: 11000
	},

	downloadVideoLib: true
};

Options

Name Type Description Accepted Values Default Required
offers.mode string Selects between overlay and toaster display modes. 'overlay', 'toaster' toaster false
offers.layout string For the 'overlay' display container, sets the text on the right or left side of the image/video. 'leftText', 'rightText' leftText false
offers.title string The title of the widget; sets the title text in the widget header. n/a n/a false
offers.headline string A headline string displayed in larger text above the body. n/a n/a false
offers.body string The main text body of the offer. n/a n/a false
offers.button string A short string to be displayed inside the CTA button. n/a n/a false
offers.ctaURL string A URL to open when the user clicks on the image or CTA button. n/a n/a true
offers.image string A URL of an image to be displayed in the offer. n/a n/a false
offers.video string A URL of a YouTube or Vimeo video to be displayed in the offer. This will replace and image if an image URL is present. Warnings will be present in the JavaScript console if the video URL is not valid. n/a n/a false
offers.timeout integer Sets a timeout, in milliseconds, after which offers widget will close if there is no interaction. positive integers 15000 false
downloadVideoLib boolean An option to enable loading of 3rd party video libraries. Needs to be set to true in order to show videos inside an offer. Note: this option is only available in the static config, passing this along with the open parameter will not work. true/false false n/a
Comments or questions about this documentation? Contact us for support!