Reveal node in search results with mouseover

This highlights nodes in the search results using a mouseover trigger.

See forum https://discourse.nodered.org/t/highlight-nodes-in-search-results-list/99747 for a discussion.
pull/5368/head
Gerrit Riessen 2025-12-04 13:01:59 +01:00 committed by GitHub
parent bac0064876
commit aef90576eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -440,6 +440,12 @@ RED.search = (function() {
$('<div>',{class:"red-ui-search-result-node-type"}).text(node.type).appendTo(contentDiv);
$('<div>',{class:"red-ui-search-result-node-id"}).text(node.id).appendTo(contentDiv);
div.on("mouseover", function(evt) {
if ( node.z == RED.workspaces.active() ) {
RED.view.reveal(node.id)
}
});
div.on("click", function(evt) {
evt.preventDefault();
currentIndex = i;