onLocationSetDefaultLocation( )


Notes:

Triggered when a location is set as default.

Permissions
Manage Locations
Learn more about app permissions.
Method Declaration
Copy
function onLocationSetDefaultLocation(handler: function): void;
Method Parameters
handlerfunction

handler(event: LocationSetDefaultLocationEnvelope): void | Promise<void>

JavaScript
import { locations } from "@wix/business-tools"; locations.onLocationSetDefaultLocation((event) => { // handle your event here });
Did this help?