Events

Listeners for ZapietEats events

onInit()

Fired when the widget is first initialized and starts loading

ZapietEats.onInit(function () {...});

ready()

Fired when the widget finishes loading and is ready to use

ZapietEats.ready(function () {...});

onLanguageChanged()

Fired when the widget's display language is changed

ZapietEats.onLanguageChanged(function () {...});

onRestaurantChanged()

Fired when a restaurant is selected

ZapietEats.onRestaurantChanged(function () {...});

onMenuChanged()

Fired when a menu is selected

ZapietEats.onMenuSelected(function () {...});

onDeliveryOptionChanged()

Fired when a delivery option is selected

ZapietEats.onDeliveryOptionChanged(function () {...});

onLoadingSettings()

Fired when the account settings start loading

ZapietEats.onLoadingSettings(function () {...});

onLoadedSettings()

Fired when the account settings finish loading

ZapietEats.onLoadedSettings(function () {...});

onLoadingRestaurants()

Fired when the search results start loading

ZapietEats.onLoadingRestaurants(function () {...});

onLoadedRestaurants()

Fired when the search results finish loading

ZapietEats.onLoadedRestaurants(function () {...});

onModalOpened()

Fired when the modal is opened

ZapietEats.onModalOpened(function () {...});

onModalClosed()

Fired when the modal is closed

ZapietEats.onModalClosed(function () {...});

onTopBarOpened()

Fired when the top bar is opened

ZapietEats.onTopBarOpened(function () {...});

onTopBarClosed()

Fired when the top bar is closed

ZapietEats.onTopBarClosed(function () {...});

Last updated