Skip to content

Instantly share code, notes, and snippets.

@mujeebishaque
Created November 22, 2020 20:21
Show Gist options
  • Save mujeebishaque/455583577f902c6577a69d22db571c56 to your computer and use it in GitHub Desktop.
Save mujeebishaque/455583577f902c6577a69d22db571c56 to your computer and use it in GitHub Desktop.
<script type=text/javascript>
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": true,
"progressBar": true,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "400",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
toastr.{{ message.tags }}('{{ message }}')
</script>
<!-- call it using the code below -->
{% if messages %}
{% for message in messages %}
{% include 'includes/toasts.html' with message=message %}
{% endfor %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment