are there any examples for getting the values for a 'SELECT' item in the toolbar from the database?
currently have this
toolbar: {
items[
{
type:'select',
options:[ { "value1": "Description1" },
{ "value2": "Description2" },
]
}
]
}
want something like this
toolbar: {
items[
{
type:'select',
options: function(){
var values = []
$.getJSON("my/url", data, function(response){
$.each(response, function(index,item){
values.push(item)
}
}
}
]
}