Skip to content

Latest commit

 

History

History
85 lines (58 loc) · 2.99 KB

README.md

File metadata and controls

85 lines (58 loc) · 2.99 KB

Image Icon Select

Image Icon Select is an extension of Chosen.

GitHub license GitHub forks GitHub stars Average time to resolve an issue Percentage of issues still open

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.

Image-Icon-Select-demo-gif

New Features!

  • 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
Hope you find it helpful

Get back if you have any feedback/improvements.

Installation

  • Clone locally,
    git clone https://github.com/yourabusufiyan/image-icon-select

or

  • Browse or check examples.html

Usage

You just only need to add data-img attribute for image and data-icon to your <option> tag.

for Image selects

<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>

For Icon selects

<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

Tech

Image Icon Select uses a number of open source projects to work properly:

Copyright and license

MIT license Copyright (c) 2019 Abu Sufiyan.

Free Software, Hell Yeah!