Skip to main content

Detach Address Finder

After instatiation, you can detach Address Finder with detach.

const controller = AddressFinder.setup(config);

// Removes Address Finder from DOM and clears event listeners
controller.view.detach();

The same Address Finder instances can be reconnected with attach.

controller.view.detach();

// Restores Address Finder to the DOM and start event listeners
controller.view.attach();