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

Feature #11

Closed cpierce closed 11 years ago

cpierce commented 11 years ago

Could we create a sort of albums using <optgroup> so that photos from different albums could be "grouped"?

rvera commented 11 years ago

You still want to use a form selector bur grouped? Or you don't want to use this on a form at all?

cpierce commented 11 years ago

What I was thinking is the following example:

<select id="PhotoAlbums" multiple="multiple" name="photos[]">

  <optgroup label="Album1">    <option data-img-src="/img/photos/phot1.jpg" value="1">Photo 1</option>    <option data-img-src="/img/photos/phot2.jpg" value="2">Photo 2</option>   </optgroup>

  <optgroup label="Album2">    <option data-img-src="/img/photos/phot3.jpg" value="3">Photo 3</option>    <option data-img-src="/img/photos/phot4.jpg" value="4">Photo 4</option>   </optgroup> </select>

If we were to take the above code and convert it into a grouping of photos where you could have the photos in album 2 and the photos in album 1 somehow seperated this would be wonderful.

Let me know if that makes sense?

rvera commented 11 years ago

That sounds pretty good. I'm a little overwhelmed right now though. Will look unto it as soon as I can.

rvera commented 11 years ago

This is supported starting on version 0.1.6