Cell editor conditional on the input of another cell editor

Hi Dash Community:

I didn’t search for a long time, but want to ask, is there a way to implement cell editor conditional on the input of another cell (with cell editor) in the same Aggrid table?

For example:
In the first cell, I choose from Color or Fruit:

image

Then, conditional on the choice, in a different cell below the “Type” cell, I can choose, say, black/red/blue if the first choice is “Color” and then choose apple/orange if the first choice is “Fruit”?

Thanks!

It’s easier to do if it’s a different column, rather than in a cell directly below. You can find an example here:

Thank you @AnnMarieW

I agree with you and remember saw the example before.
Other than the complexity of doing this with two inputs in one column (rather than one row), I think another difficulty is, if I change the value of one cell, this doesn’t trigger the other cell to refresh the cell editor inputs, unless I trigger some callback function explicitly? Thank you