There is an example with pre-written values:
$('.chips-autocomplete').material_chip({
autocompleteData: {
'Apple': null,
'Microsoft': null,
'Google': null
}
});
But I need to populate values dynamically from array which contains several string values. I tried something like this, but it doesn't work.
my_data = $.parseJSON(data);
$('.chips-autocomplete').material_chip({
autocompleteData: {
$.each(my_data, function(index, value) {
value : null;
});
}
});