Closed bwinchester closed 4 years ago
Hi @bwinchester what is this deleted button used for ?
Hi @themyth92, yeah, so it adds a delete button to the bottom area of the image, just as rotate does, that fires a delete event for the users of the lightbox to optionally allow users to fire delete image events.
Yeah but why user need this delete button ? I dont see the use case here. I think this feature maybe more like selected image button make more sense. User can then do whatever they want with that (delete, send a request, ...) but then i think it is complicated (optional icon change, text change for that button to fit the use case ...).
Is there a selected image button?
On Thu, Oct 1, 2020 at 9:49 PM themyth92 notifications@github.com wrote:
Yeah but why user need this delete button ? I dont see the use case here.
I think this feature maybe more like selected image button make more sense. User can then do whatever they want with that (delete, send a request, ...) but then i think it is complicated (optional icon change, text change for that button to fit the use case ...).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/themyth92/ngx-lightbox/pull/70#issuecomment-702498329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASDYZMFEIUNFSVFWSIJPRDSIU5T5ANCNFSM4R7QEOKQ .
There is no selected button at the moment
Im closing this PR, I was just trying to follow the pattern of adding buttons in the row of buttons for a feature we needed, which seems useful.
We ended up just writing our own shadow box component to suit our needs.
This adds an optional delete button, as well as a delete event that passes the deleted url in the event.data object argument