Using the SDK to disable buttons

I want to reopen the conversation posed by this previous post: how to disable entity node buttons after clicking on it?. How would one go about disabling buttons using the sdk?

ie. making that the yes or no buttons in the image below are disabled after they have been clicked
image