ejbeaty/CellEdit

Populate list from array

Opened this issue · 0 comments

Hi!
How can I populate the list editor values from an array that I'm loading from the server? For example, in my ajax call I'm receiving the list of users:

success: function( data ){
                    allUsers = Object.assign({},data);
                    console.log(allUsers[0].username);            
                },

I can access username value by:
allUsers[0].username