PopupMenu.PopupMenuSection

PopupMenu.PopupMenuSection — A section of a PopupMenu that is transparent to user

Object Hierarchy

    Object
    ╰── PopupMenu.PopupMenuBase
        ╰── PopupMenu.PopupMenuSection
  

Description

A section of a PopupMenu which is handled like a submenu (you can add and remove items, you can destroy it, you can add it to another menu), but is completely transparent to the user. This is helpful for grouping things together so that you can manage them in bulk. A common use case might be to let an object inherit a PopupMenuSection and then add the whole object to a popup menu.

Note that you cannot close a PopupMenuSection.