Acknowledged
CIQQA-3182

Documentation Inconsistencies for CustomMenuItem :drawable Option and setDrawable() Function

In the documentation of CustomMenuItem:

  • The :drawable option is described as a drawable that draws the item and is marked as required.

  • The setDrawable() function is described as setting a drawable that is rendered on top of the menu item.

After testing both, I found that they behave the same: they draw the menu item itself, not something rendered on top. Therefore, it seems the documentation for the :drawable option is correct, but the description for setDrawable() is incorrect.

Additionally, the documentation for the :drawable option is not entirely accurate: it is not required. You can omit :drawable and instead implement a draw() function. In fact, if both a :drawable is provided and a draw() method is implemented, the draw() method takes precedence and will be rendered on top.