Updating source in dropdown

Tags: #<Tag:0x00007efc64de6810>

Hi,

Is there a way to edit the source of a dropdown column after it has been generated already?
Attached is my fiddle, so when you click the “add color purple” button, I want to add the color purple in the options.

Thanks!

https://jsfiddle.net/namihihii/u4gd3ytp/3/

I recommend using the push() method. It’s the easiest way - you’d just need to define the list of choices for the dropdown cell type as an array variable. Demo https://jsfiddle.net/buwzL8v6/

hello, thanks for the help. I was able to make it work! :slight_smile:

Thank you for the update. I think that we can close this thread then.