How to use the sweetalert2.default function in sweetalert2

To help you get started, we’ve selected a few sweetalert2 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 SharePoint / sp-dev-fx-webparts / samples / js-modern-calendar / src / webparts / modernCalendar / ModernCalendarWebPart.ts View on Github external
eventClick: (_event) => {
        var eventDetail = moment(_event['start']).format('MM/DD/YYYY hh:mm') + ' - '  + moment(_event['end']).format('MM/DD/YYYY hh:mm') + '<br>' + _event['detail'];
        swal2.default(_event.title,eventDetail,'info');
      }
    };
github tomitrescak / apollo-redux-tools / dist / client / mutation.js View on Github external
function showMessage(title, text, type) {
    if (type === void 0) { type = 'error'; }
    if (sweetalert2_1.default) {
        sweetalert2_1.default({ title: title, text: text, type: type, confirmButtonText: 'OK' });
    }
    else {
        alert(title + ": " + text);
    }
}
exports.showMessage = showMessage;