Function 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.

void setItemDisabled (
  const(long) idx,
  const(bool) disabled
) nothrow @nogc;