perspective cell highlight

This commit is contained in:
Jan Prochazka
2022-08-05 20:17:49 +02:00
parent 25d2c129cd
commit 1ed01e9839
4 changed files with 31 additions and 5 deletions

View File

@@ -154,7 +154,7 @@
checkLoadAdditionalData();
}
function buildMenu({ targetElement }) {
function buildMenu({ targetElement, registerCloseHandler }) {
const res = [];
const td = targetElement.closest('td') || targetElement.closest('th');
@@ -172,6 +172,10 @@
setConfig,
})
);
td.classList.add('highlight');
registerCloseHandler(() => {
td.classList.remove('highlight');
});
}
res.push([