<!-- HTML to write -->
<button class="cdp-btn bg-green text-white m__10" onclick="successExample()"> Toastr Success </button>
<!-- Javascript to write -->
<script src="../custom/js/jqueryPluginsConfig.js"></script>
<script src="../custom/js/toastr.min.js"></script>
toastr.options = toastr_config;
function successExample() {
toastr.info("", "Success Toastr", {
timeOut: "3000",
extendedTimeOut: "0",
iconClass: "cdp-toast-info",
});
}
<!-- HTML to write -->
<button class="cdp-btn cdp-bg__selectiveyellow text-white m__10" onclick="warnExample()"> Toastr Warning </button>
<!-- Javascript to write -->
<script src="../custom/js/jqueryPluginsConfig.js"></script>
<script src="../custom/js/toastr.min.js"></script>
toastr.options = toastr_config;
function warnExample() {
toastr.warning("", "Warning Toastr", { timeOut: 0, extendedTimeOut: 0, iconClass: "toast-warning cdp-toast-warn", });
}