Comments (3)
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.
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?
from laradminator.
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)
- Class name missing when creating migration HOT 1
- Page Loading Slow HOT 4
- Starting Laradminator project with Docker HOT 1
- Error 404 in administration HOT 3
- Use spinner for AJAX requests HOT 1
- Demo site deceptive HOT 4
- Can't reach /admin HOT 7
- Element creation HOT 6
- Active dot at sidebar looks not working HOT 1
- Choosing selected value in select2 <select> HOT 4
- Best practice to dynamically add form fields HOT 4
- Password mutator HOT 3
- Hiding columns from datatable (while still searchable) HOT 8
- Unauthenticated error when multiple users login from same browser HOT 7
- jQuery on views?
- How to add buttons and filters to ajax datatable (yajra) HOT 7
- Custom javascript code HOT 3
- https://laradminator.bel4.com/login HOT 1
- The demo cannot be show the admin route HOT 3
- RTL - scss helpers issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laradminator.