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

@@ -25,4 +25,8 @@
border-bottom: 1px solid var(--theme-border);
border-right: 1px solid var(--theme-border);
}
td:global(.highlight) {
border: 3px solid var(--theme-icon-blue);
padding: 0px;
}
</style>

View File

@@ -179,4 +179,9 @@
th.columnHeader {
position: relative;
}
th:global(.highlight) {
border: 3px solid var(--theme-icon-blue);
padding: 0px;
}
</style>

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([