Answered: actionColumn working with 2 states but not with 3 states.

Answered: actionColumn working with 2 states but not with 3 states.

Hello, I'm trying to show an icon depending on the value, if the value is undefined then it won't show the icon, when is 1 it will show an icon with a handler that supports click event, and when the value is 0 it will show an icon and it will also has its handler event to switch from 0 to 1 and viceversa. The thing is when I add the noButton item, it shows all 3 icons and it behaves very weird. here is my code, can someone give me a hand on this ?, I know I have some bad decisions in the code, exactly inside (if) but, I also tried using when 1 do this, when 0 do that, when undefined do X, but its not clear for me, please I need a hand. thanks
thanks