rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 216 forks source link

Ability to delete images #95

Closed jonesr91 closed 7 years ago

jonesr91 commented 7 years ago

Hi there,

Are there any plans to add an option to allow an image to be deleted? A little cross in the top right corner of the image that appears on hover or something.

Thanks, Ryan

Guite commented 7 years ago

Hover seems not ideal if it should also work on touch devices.

jonesr91 commented 7 years ago

Good point. Have you got any better solutions?

It would be great to have the option to delete an image by calling an API.

rvera commented 7 years ago

No plans for this, the ideas for the plugin is that you provide a set of options and let the users pick from them. Seems like you want the opposite, provide all the options and let the users remove the ones they don't want.

You could cheat around this by creating a picker with all the options selected, when they touch an option it will be unselected. You can hide all unselected options with css.