Tyres Search Tabs Component

The Tyres Search Tabs component is a combination of multiple component, put together for an easy entrance into the booking system.

<tyres-search-tabs></tyres-search-tabs>

This widget allows the users to select a branch, enter a VRM for tyre lookup or alternatively enter a tyre size manually.

Configuration options

The following configuration options are currently available for the Tyres VRM Lookup:

show-result
This determines whether or not the widget will show the VRM result. Can be true or false. Default value is set to true.

template
This is which version of the widget is used. Default value is set to 1.

loading-panel
This is a boolean value that will detemine whether or not a loading panel will show over the component while its initialising and doing initial API calls. The default value is false.

min-height
Min-height is the minimum height of the component in px. Important to set a value here if you want the loading panels to look good. Default value is 0.

vrm-button-text
You can change the vrm button text using this binding. The default value is ‘Get prices’. Please note, as this is a string it must be formatted correctly with both double and single quotes. e.g button-text=”‘BOOK’”.

manual-button-text
You can change the manual button text using this binding. The default value is ‘Get prices’. Please note, as this is a string it must be formatted correctly with both double and single quotes. e.g button-text=”‘BOOK’”.

require-branch-guid
This is a boolean to determine whether or not the user needs to have a branch selected before submitting a VRM lookup. The default is false and this is mainly going to be useful when you want to use a branch select and vrm lookup component together as a CTA.

redirect-url
If you want to redirect the user to a different page on a successful VRM result, you can enter the url here. Please note, as this is a string it must be formatted correctly with both double and single quotes. e.g redirect-url=”‘/go-to-this-url’”.

redirect-state
If you want to redirect the user to a different state upon a successful result, then you can enter the state here.  Please note, as this is a string it must be formatted correctly with both double and single quotes. e.g redirect-url=”‘app.go.here’”. If there is both a redirect url and redirect state, the state will take priority.

Example code

<tyres-search-tabs vrm-button-text="'Buy tyres'" loading-panel="true" template="1" min-height="300" redirect-url="'/online-booking/#/select-services'"></tyres-search-tabs>

Updated on February 7, 2018

Was this article helpful?

Related Articles