Revision as of 21:49, August 21, 2016 by Bfriend (talk | contribs)
Jump to: navigation, search

Configuration

Description

CallUs uses the configuration property '_genesys.widgets.callus'. You must specify all numbers and labels that appear in the CallUs UI.

Example

window._genesys.widgets.callus = callus: {

	contacts: [

		{
			displayName: 'Payments',
			i18n: 'Number001',
			number: '1 202 555 0162'
		},
		{
			displayName: 'Local',
			i18n: 'Number002',
			number: '202 555 0134'
		},
		{
			displayName: 'International',
			i18n: 'Number003',
			number: '0647 555 0131'
		}
	],

	hours: [

		'8am - 8pm Mon - Fri',
		'10am - 6pm Sat - Sun'
	]
};

Options

Name Type Description Default Required
themes object An object list containing the CSS classname for each Theme. The property names are used to select the theme in the 'theme' property. e.g.

{ dark:'cx-theme-dark', light:'cx-theme-light', 'red':'cx-theme-red', 'blue':'cx-theme-blue'}

Where 'dark' and 'light' are the built-in themes provided in Genesys Widgets and 'red' and 'blue' are example custom theme names you may create on your own. Note: It is not necessary to define the 'dark' and 'light' theme as shown in this example. It is included to help show how the formatting works. Whatever you put in this object will be merged with the default themes object internally.

{dark: 'cx-theme-dark', light: 'cx-theme-light'}
theme string Selects the theme to apply to Genesys Widgets from the 'themes' object. Uses the property name of the theme. e.g. using the example from 'themes' above, possible values for this could be 'dark', 'light', 'red', 'blue'. dark
lang string Select the language to use from the 'i18n' language pack. Language codes are selected by the customer. Any language code format can be used as long as this property matches one of the language codes in your i18n language pack. For more information about localization, see localization. en
i18n URL string or JSON Either a path to a remote i18n.json language pack file or an inline JSON language pack definition. For more information about language packs, see localization. Default English language strings are built into each widget and are displayed by default. Defining this i18n language pack overrides the built-in strings.
mobileMode boolean/string Mobile Mode setting.

true = Force Mobile Mode on all devices. false = Disable Mobile Mode completely. 'auto' = Genesys Widgets Automatically switches between Mobile and Desktop Modes using the 'mobileModeBreakpoint' property and UserAgent detection.

auto
mobileModeBreakpoint number The breakpoint width in pixels where Genesys Widgets will switch to Mobile Mode. Breakpoint checked at startup only. 600
plugins array A list of plugin names. This list overrides the default list of plugins that are initialized at startup. You can use this array to dynamically change the available plugins so that different user types have access to different plugins. []
debug boolean Enable debug logging from the bus to appear in the browser console. false
Comments or questions about this documentation? Contact us for support!