Toastr

Toastr is very easy JavaScript toast. It is a notification library. It is very easy to use, it's very small and it is extendable. It allow user to generate simple toasts with HTML5 and JavaScript for example, it will simply include the files in your HTML page and will write a simple and easy line of code like this toastr.

toastr

on Feb 20, 2022
//how to use toastr:
Toast.fire({
    icon: 'success',
    title: 'Successfully Created.'
})
//or
toastr.success('Successfully Created.')

//js
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Add Comment

0

toastr

on Jun 20, 2022
<script>
  @if(Session::has('message'))
  toastr.options =
  {
  	"closeButton" : true,
  	"progressBar" : true
  }
  		toastr.success("{{ session('message') }}");
  @endif

  @if(Session::has('error'))
  toastr.options =
  {
  	"closeButton" : true,
  	"progressBar" : true
  }
  		toastr.error("{{ session('error') }}");
  @endif

  @if(Session::has('info'))
  toastr.options =
  {
  	"closeButton" : true,
  	"progressBar" : true
  }
  		toastr.info("{{ session('info') }}");
  @endif

  @if(Session::has('warning'))
  toastr.options =
  {
  	"closeButton" : true,
  	"progressBar" : true
  }
  		toastr.warning("{{ session('warning') }}");
  @endif
</script>

Add Comment

0

Hopefully all the answers will verify your questions for further queries you can quote your suggestions too

Whatever answers related to "Toastr"

View All Whatever queries

Whatever queries related to "Toastr"

Browse Other Code Languages

CodeProZone