[core] Notification: error (core): Cannot load modules.json from userModules/SomeModule/module.json: SyntaxError: Unexpected token u
If I just write:
Code: Select all
"dataSource" : [{"value": "test1", "text": "Test 1"},{"value": "test2", "text": "Test 2"}]
Code: Select all
"dataSource" : function(callback){
value_object = [{"value": "test1", "text": "Test 1"},{"value": "test2", "text": "Test 2"}];
callback(value_object);
}
Code: Select all
"dataSource" : function(){
value_object = [{"value": "test1", "text": "Test 1"},{"value": "test2", "text": "Test 2"}];
return value_object;
}()