Set a cell type for only 1 cell

Tags: #<Tag:0x00007efc728c9680> #<Tag:0x00007efc728c9540>

Hello,

I read this page of the docs :

I would like to set a cell type of ‘select’ but not for an entire column. Is there a way to change this attribute only for 1 cell ? I only found this :

columns: [{
  type: 'select'
}]

But maybe something like that exists :

hot.setCellMeta(1, 1, 'type', 'select')

Hi @sheepbild

Thank you for contacting us. This can be done by utilizing cells option, and assigining new cell type for chosen cell through cellProperties. Here’s an example:

https://jsfiddle.net/handsoncode/afx1vozw/

The first cell is now of type of select with assigned source.

1 Like

Thank you very much @adrian.szymanski !

I’m glad I could help :slight_smile: I will close this topic now.