Topic: Admin Dashboard Tutorial (Lesson 11): jQuery positionClass

SLK free asked 5 years ago


The toast is not visible in the Admin Dashboard lesson 11.

I'm using MDB Pro 4.7.1 (which is not an option in the MDB Version dropdown in the issue form). I had to enter an MDB version to submit the issue so I chose 4.6.1 but I am running 4.7.1.

It seems the positionClass should be md- toast-top-right for jQuery rather than toast-top-right.

The lesson code is below.

$(function () {
  $('#folder-1').click(function () {
      toastr.error("Folder 1 has been clicked!", "Folder 1", {
          "positionClass": "toast-top-right",
      });
  });
});

Please see my snippet with the test case: jQuery toastr positionClass

Note: If the JavaScript button is pressed first and the toast is still visible when the jQuery button is pressed, the jQuery toast is displayed in the upper right rather than the lower left.


Michal Szymanski staff answered 5 years ago


Thank you for noticing this error.

We've fixed this.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.6.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes