jspreadsheet / ce

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
https://bossanova.uk/jspreadsheet/v4
MIT License
6.66k stars 820 forks source link

update source in a specific cell #1645

Open victorLessa opened 10 months ago

victorLessa commented 10 months ago

How to update the options in a drop-down list in a specific cell? Possui algo como:


const cell = sheet.getCell(row, column);
const option = { value: "Opção 4", label: "Opção 4" };

cell.setOptions([...cell.getOptions(), option]);
Karolis-Stoncius commented 8 months ago

Hi, did you find a solution?