Skip to content

Commit 7684535

Browse files
committed
updated doc
1 parent d0ba60b commit 7684535

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
# DropdownImageField
22

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+
36
![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.

_config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
<?php

0 commit comments

Comments
 (0)