API reference
Preparing search index…

ImGui.OpenPopupOnItemClick

  • Open a popup when the preceding item is clicked.

    Parameters

    str_id
    null | string | Uint8Array = null

    Popup ID hashed in the current ID stack; null uses the last item ID for item popups, or the built-in context ID for window/void popups.

    popup_flags
    number = 1

    ImGuiPopupFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    void

    helper to open popup when clicked on last item.

    Default to ImGuiPopupFlags.MouseButtonRight == 1.

    (note: actually triggers on the mouse released event to be consistent with popup behaviors)

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0