We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @luoye-fe can I request a click event callback ? it will return the callback with inspector.target
inspector.target
thank you
The text was updated successfully, but these errors were encountered:
I also need this. I tried to bind a click event on the .dom-inspector class, but it doesn't have any response.
Sorry, something went wrong.
Any Idea how can we get the selected DOM element ?
This is how I did it
document.addEventListener("click", onClicked, false);
In my case I also checked whether the inspector is toggled on or not
function onClicked(e) { if (!inspectorToggled) { return; } // Get element e = e || window.event; var target = e.target || e.srcElement; e.stopPropagation(); e.preventDefault(); const xpath = inspector.getXPath(); const selector = inspector.getSelector(); const eleInfo = inspector.getElementInfo(); const mousePosition = { x: e.clientX, y: e.clientY, }; const location = window.location.toString(); // Do sometjing with the element }
No branches or pull requests
Hi @luoye-fe can I request a click event callback ? it will return the callback with
inspector.target
thank you
The text was updated successfully, but these errors were encountered: