Commit 5f12a94e authored by David Stutz's avatar David Stutz

Merge pull request #159 from sathyamoorthi/dataprovider

dataprovider option added
parents 7a727d86 8c45736d
......@@ -501,6 +501,17 @@
}
},
dataprovider: function(dataprovider) {
var optionDOM = "";
dataprovider.forEach(function (option) {
optionDOM += '<option value="' + option.value + '">' + option.label + '</option>';
});
this.$select.html(optionDOM);
this.rebuild();
},
// Get options by merging defaults and given options.
getOptions: function(options) {
return $.extend({}, this.defaults, options);
......
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