Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

How to get the clicked element #5

@TheWilley

Description

@TheWilley

Please correct me if I'm wrong, but the documentation mentions no way get the element that was clicked on. There is, however, a way to get it.

contextMenu.addItem("alertElement", function () {
    alert(contextMenu._elementClicked)
});

I assume the _elementClicked variable is not supposed to be accessed, as it's marked as private. Still, I thought it could be worth mentioning!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions