wheely-bijtelling
v1.0.2
Published
The widget allows the user to pass a custom user situation and a licene plate so a bijtelling calculation can be returned. T Example widget at: https://codepen.io/rkuyper/full/xQQQPZ/.
Downloads
10
Readme
Get started with wheely-bijtelling
The widget allows the user to pass a custom user situation and a licene plate so a bijtelling calculation can be returned. T Example widget at: https://codepen.io/rkuyper/full/xQQQPZ/.
##Usage
const wheelyBijtelling = require('wheely-bijtelling');
wheelyBijtelling.bijtellingWidget(
{
api : 'api_key',
id: 'target_element',
options : {
tracking : 'GTM-XXXXXX', // writes user behaviour to Google Tag Managers DataLayer
height: 'height_of_widget', // leave empty if using wheely default height
width : 'width_of_widget', // leave empty if using wheely default width
style : 'stylesheet_of_choice', // leave empty if using wheely default style
color : 'button_color', // leave empty if using wheely default color
options : {
title : '', // leave empty if using wheely default title
description : '' // leave empty if using wheely default description
}
}
}
);
##Cached data Each request is cached inside the global dataLayer namespace. You can search the cached data by listening to 'vehicleSearch' event.
let cachedData = window.dataLayer;
##Returned bijtelling values Example of returned car object.
0.00 // integer