Posted 4 November 2021, 9:55 am EST
I tried to modify a cell’s type when I click it. This is the code I used:
workbook.bind(GCSheets.Events.CellClick, (e: EventParam, info: any) => {
let cellType = new GCSheets.CellTypes.ComboBox();
cellType.items([“a”, “b”]);
this.getWorkbook().getActiveSheet().getCell(info.row, info.col).cellType(cellType);
});
The ▼ icon appears, but when I click it, the dropdown does not appear and the editor functions like a textbox.