Found some functions to use, to disable/enable the buttons:
Code:
-- Activate or deactivate a button...use BSTATE_NORMAL to activate and BSTATE_DISABLED to deactivate
function ZO_Dialogs_UpdateButtonState(dialog, buttonNumber, buttonState)
-- Update the text on a button itself
function ZO_Dialogs_UpdateButtonText(dialog, buttonNumber, text)
function ZO_Dialogs_UpdateButtonVisibilityAndEnabledState(dialog)
-> This function is checking "if buttonInfo.visible ~= nil then"
so there seems to be that .visible = function() return not inMyTable[text] end or similar
--> See code here: https://github.com/esoui/esoui/blob/2da96c11b9db89d1b48bc7ab014af25fbe1c1931/esoui/libraries/zo_dialog/zo_dialog.lua#L1081C13-L1081C46
And you also got buttonInfo.enabled