Giter VIP home page Giter VIP logo

Comments (3)

kossa avatar kossa commented on May 26, 2024

Alright, if you try to remove a user you'll see a sweet popup confirmation,

jQuery is already installed.

You can import and use jQuery plugin like select2 in this example : https://github.com/kossa/laradminator/blob/master/resources/js/select2/index.js
Or Sweetalert : https://github.com/kossa/laradminator/blob/master/resources/js/sweetalert2/index.js

Note that all js plugins are located in resources/js/

Note: Currently for sweetalert I'm using https://github.com/realrashid/sweet-alert

from laradminator.

djtechonline avatar djtechonline commented on May 26, 2024

Thank you for the reply, however I am not able to get it to work. I do not get any sweetalert confirmation when trying to delete a user. It simply deletes the user and gives me a notification that the user has been deleted. The "npm run watch" was initiated at the server. The various chart examples seems to work, so I'm not sure what is different.

I have attached some screenshots that show what I am working with. First is the resources/js/sweetalert2/index.js file that has the code you referenced in your reply.

Second is my attempt to use sweetalert2. It shows the jquery code I have added, at the bottom of views/admin/dashboard/index.blade.php. It thought it would just display the sweet alert message when the page loads, but it does not.

Finally, I have included a screenshot showing where I have added the import command to resources/js/index.js in an attempt to get it to work.

Am I doing something wrong? Did I overlook something?

Screen Shot 2019-08-25 at 5 44 39 PM
Screen Shot 2019-08-25 at 5 45 26 PM
Screen Shot 2019-08-25 at 5 59 31 PM

from laradminator.

kossa avatar kossa commented on May 26, 2024

I think problem with your NPM

Can you check : http://laradminator.bel4.com/admin/users

Username: [email protected]

Password: 123456

And delete a user

from laradminator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.