Home > widget-integration > InstantSearchController > render3rdAppSupportButton
InstantSearchController.render3rdAppSupportButton() method
Render a 3rd-party support CRM button inside the ISW container.
Signature:
protected render3rdAppSupportButton(): void;
Returns:
void
Example
// Example 1: call super then add extra behaviour
window.boostWidgetIntegration.extend('InstantSearchController', (InstantSearchController) => {
return class CustomController extends InstantSearchController {
protected render3rdAppSupportButton() {
super.render3rdAppSupportButton();
}
};
});
// Example 2: style the rendered button per-shop
window.boostWidgetIntegration.extend('InstantSearchController', (InstantSearchController) => {
return class CustomController extends InstantSearchController {
protected render3rdAppSupportButton() {
super.render3rdAppSupportButton();
const button = document.querySelector('.boost-sd__support-button');
if (!button) return;
button.classList.add('my-custom-class');
}
};
});