How to use the zoid/src.EVENT.CLOSE function in zoid

To help you get started, we’ve selected a few zoid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paypal / paypal-checkout-components / src / checkout / template / containerTemplate.jsx View on Github external
return (el) => {
            const showContainer = () => animate(el, `show-${ name }`, noop);
            const hideContainer = () => animate(el, `hide-${ name }`, noop);
            event.on(EVENT.DISPLAY, showContainer);
            event.on(EVENT.CLOSE, hideContainer);
        };
    };
github paypal / paypal-checkout-components / src / checkout / template / containerTemplate.jsx View on Github external
const onClose = new ZalgoPromise(resolve => {
        event.on(EVENT.CLOSE, resolve);
    });