Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.41k stars 206 forks source link

feat: confirmation before any action. #1599

Closed hemant-kr-meena closed 1 day ago

hemant-kr-meena commented 2 weeks ago

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

Description

Feature: This PR adds a confirmation popup before executing any action via action buttons. Purpose: To prevent unintended actions and improve user experience by adding an extra layer of confirmation.

As we know we use macros for additional functionality to add id and trigger dispatch events. In the same way, we can add wire:confirm attribute to buttons.

Read more Livewire wire:confirm

Example:

confirm confrim-prompt

Documentation

This PR requires Documentation update?

hemant-kr-meena commented 1 week ago

Thank you for your feedback. I will make the requested changes and submit a docs pull request to the docs repo within a few days.

luanfreitasdev commented 1 week ago

Thank you for this PR!

hemant-kr-meena commented 1 week ago

Hi @luanfreitasdev, I marked all requested changes as resolved. But in PR it still shows that one change is requested. Why is this showing this?

Did I need to make any other changes regarding this PR?