OptionButton.setItemDisabled

Sets whether the item at index idx is disabled. Disabled items are drawn differently in the dropdown and are not selectable by the user. If the current selected item is set as disabled, it will remain selected.

struct OptionButton
@nogc nothrow
void
setItemDisabled
(
in long idx
,
in bool disabled
)

Meta