Examples in the UI are the Math shader nodes Operator drop down (Also similar, but not an enum is the Add Modifier drop down). They have columns with headings and the items grouped under them.
How is this effect achieved? I can't see what the Math node does, but the UI code for the Modifier drop down doesn't have anything special it just uses 'operator_menu_enum' UILayout.
Is it possible to achieve the same thing in an add-on?
(It seems like it might use the menu system to draw the layout and I thought 'prop_with_menu' function might be on the right track. But calling that in the draw method crashes blender, so I don't know if and how it can be used at all.)