-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented a delete action as per #41 #43
base: master
Are you sure you want to change the base?
Conversation
* Turn delete-icons on and off with delete-icons="true|false" * Implemented a on-delete callback
Can you post an example of how to use the onDelete callback from the angularjs controller? The callback isn't being called in the controller when I use your implementation. It's almost as if EDIT: Nevermind, I found the solution to my problem here |
Improved delete action and few other improvements
Can now delete an image by setting delete-icons to true and clicking the delete icon on either the thumbnail or gallery. Confirms with the user if they want to delete the image. Will go to the last image in the array after the delete action has occurred. A on-delete callback has also been implemented. Supports edge cases such as an empty images array.
Example usage: