Image Icon Select is an extension of Chosen.
Image Icon Select provides to select option display image or icon or both at the same time to make user select easy. I designed this plugin extension to use in my Options Framework. Framework is not ready yet.
- You can use Single (one-to-one).
- You can use Image Icon Selec for modelling multiple (one-to-many)
- RTL supports
- Image select
- Icon select
- Both image and icon at the same time
Get back if you have any feedback/improvements.
- Clone locally,
git clone https://github.com/yourabusufiyan/image-icon-select
or
- Browse or check
examples.html
You just only need to add data-img
attribute for image
and data-icon
to your <option>
tag.
<select class="select-class">
<option data-img="url" selected>Abu Sufiyan</option>
<option data-img="url">Desi Coder</option>
<option data-img="url">Asim Watson</option>
<option data-img="url">Programmer</option>
</select>
<select class="select-class">
<option data-icon="<i class='fas fa-car'></i>" selected>Car</option>
<option data-icon="<i class='fas fa-bicycle'></i>">Bicycle</option>
<option data-icon="<i class='fas fa-bus'></i>">Bus</option>
<option data-icon="<i class='fas fa-train'></i>">Train</option>
</select>
Then call ImageIconSelect()
as you would with the options you need.
$("select-class").ImageIconSelect(options);
'ImageIconSelect'
support all chosen options
Image Icon Select uses a number of open source projects to work properly:
- Chosen
- [jQuery]
MIT license Copyright (c) 2019 Abu Sufiyan.
Free Software, Hell Yeah!