patrickkunka/easydropdown — pull request #47 by darrenscerri (2014-03-07 12:16:23+00:00)
Title: Add a templating function for option list

Add a ```renderItem(item)``` function to enable custom templating. Use by passing the function as an option when initialising the dropdown:

```
$('.dropdown').easyDropDown({
renderItem: function(item) {
var $item = $(item.domNode);
return '' + item.title + '' + $item.data('attribute') + '''
}
});
```