How to disable the entry in the Handsontable cell and enable one drop-down menu

I made a fiddle with this example. An example with a violin .

In the 4th column there are several cells that I want to turn off in recording mode and activate the drop-down menu. Actually, I have a drop-down list and works well for me, but I can continue to write in it, and I want to disable this option.

I just want to let people choose one of these options. In this example, color or Bumber.

I tried this, including ReadOnly:

    {
      data: 'bumper',          
      type: 'dropdown',
      readOnly: true, 
      source: ['Red', 'Blue', 'Green']
    }

But (obviously) disable the entire cell and not allow editing the cell with a drop-down list.

+4
source share
1 answer

, - allowInvalid

{
  data: 'bumper',          
  type: 'dropdown',
  allowInvalid: false,
  source: ['Red', 'Blue', 'Green']
}

"allowInvalid: false", Enter , , , , .

, , - - .

+4

All Articles