Destroys widget - removes listeners and DOMNodes
(any)
Subscribe to all widget events
(RecruiteeWidget.EventHandler)
Handler function
Subscribe to specific widget event
"view:change"
| "form:apply:success"
| "form:apply:error"
), handler: RecruiteeWidget.EventHandler)(("view:change"
| "form:apply:success"
| "form:apply:error"
))
Name of the event
(RecruiteeWidget.EventHandler)
Handler function
Updates widget with provided config
(RecruiteeWidget.Config)
(Boolean)
(string)
: ID of
DOM Node
in which widget should be created,
If
DOM Node
doesn't exists, it will be created and appended to
body
tag.
(("en"
| "de"
| "fr"
| "nl"
))
: Language to be used (ISO 639-1).
(("popup"
| "overlay"
| "recruitee"
))
: Determines how offer details should be displayed.
(Array<string>)
: Restricts visible offers only to those which are in specified departments
(Object)
(Boolean)
: Enables browsing with history (update URL, back/prev navigation handling)
(Array<string>)
: List of query parameter names, which values should be used as Source.
Although you can specify multiple strings, only first matched will be used as Source.
(string)
: Explicitly set Source. If this option is set then
sourceQueryParams
option will be omitted.
(RecruiteeWidget.ThemeVars)
: Customize theme variables
Type: Function
Type: Object
(RecruiteeWidget.Config)
Configuration object
// Default widget settings
<script type="text/javascript" src="https://d10zminp1cyta8.cloudfront.net/widget.js"></script>
<script type="text/javascript">
var widget = new RecruiteeWidgetConfig({
elementId: 'recruitee-careers',
companies: [],
language: 'en',
themeVars: {
text: '#5C6F78',
textDark: '#37474F',
primary: '#1999E3',
secondary: '#ea5b74',
fontFamily: '"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;',
baseFontSize: '16px',
defaultButtonBackground: 'white',
defaultButtonText: 'red',
actionButtonBackground: 'red',
actionButtonText: 'blue',
cancelButtonBackground: 'green',
cancelButtonText: 'orange'
},
detailsMode: 'popup',
departmentsFilter: [],
flags: {
showLocation: true,
showCountry: false,
showCity: true,
showApplyWithLinkedin: true,
showApplyWithIndeed: true,
groupByLocation: true,
groupByDepartment: true,
groupByCompany: true
},
useHashHistory: true,
sourceQueryParams: ['utm_source', 'rt_source']
});
// Subscribe to specific event
widget.trackEvent('view:change', function onDetailsWidgetEvt(evtName, [viewName, offer]) {
console.log(`User navigated to ${viewName}`, viewName, offer);
});
widget.trackEvent('form:apply:success', function onApplyWidgetSuccessEvt(evtName, [viewName, offer]) {
console.log(`User navigated to ${evtName}`, viewName, offer);
});
widget.trackEvent('form:apply:error', function onApplyWidgetErrorEvt(evtName, [viewName, offer, error]) {
console.log(`User navigated to ${evtName}`, viewName, offer, error);
});
// Subscribe to all events
widget.trackAllEvents(function onAnyWidgetEvt(evtName, evtData) {
console.log(`User navigated to ${evtName}`, evtData);
});
</script>