File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
# DropdownImageField
2
2
3
+ Adds a ` DropdownImageField ` field which enables you to display images alongside the captions.
4
+ Uses a plugin for Chosen.js (which is used by SS), [ Image-Select] ( https://github.com/websemantics/Image-Select ) . The plugin is modified.
5
+
3
6
![ Working screenshot] ( https://github.com/Copperis/DropdownImageField/raw/master/docs/img/ss.png )
7
+
8
+ ## Usage
9
+
10
+ Example:
11
+
12
+ ``` php
13
+ DropdownImageField::create('LanguageID', 'Select language',
14
+ LanguageObj::get(), // Source for items.
15
+ 'ID', // Key field on item.
16
+ 'Title', // Caption field on item.
17
+ 'Icon' // Image field on item. Can be a method/relation that returns an image.
18
+ )
19
+ ```
20
+
21
+ ## Notes
22
+
23
+ This plugin uses a ` setTimeout ` function with additional parameters. A polyfill is loaded to support IE9 and lower.
Original file line number Diff line number Diff line change 1
- <?php
You can’t perform that action at this time.
0 commit comments