Hi folks,
Is it possible to add data-* attributes when adding options dinamically?
I tried the following without success:
let data = {
id: employees.values[i].CPF,
text: employees.values[i].NOME + ' - ' + employees.values[i].FUNCAO,
'data-email': employees.values[i].EMAIL
}
I also tried email instead of ‘data-email’.