Commit 017cd9b2 authored by Piotr Romanowski's avatar Piotr Romanowski

Added ability to add css class to data provider options.

You can now add a class option to a node of the data provider options and it will be appended to the list item.
parent 9cccf38a
......@@ -252,11 +252,15 @@
optionLabel: function(element){
return $(element).attr('label') || $(element).text();
},
/**
* Create a class.
*
* @param {jQuery} element
* @returns {String}
*/
optionClass: function(element) {
return $(element).attr('class') || '';
},
/**
* Triggered on change of the multiselect.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment