Skip to content
Snippets Groups Projects
Commit 29e5b832 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

feature: link from supporting evidence on top to filtered view

parent cd44f165
No related branches found
Tags v1.3.31
No related merge requests found
Pipeline #17372 passed with stage
in 50 seconds
......@@ -124,6 +124,16 @@ importCore().then(core => {
this.rendering = html`${this.rendering}${template}`;
}
navigate(e) {
let target = e.target.getAttribute('target');
if(target) {
let targetElement = document.querySelector('custom-supporting-evidence');
targetElement.filtering = [target];
targetElement.requestUpdate();
targetElement.parentElement.parentElement.parentElement.parentElement.parentElement.scrollIntoView();
}
}
render() {
if(!this.dataSrc) nothing;
......@@ -139,10 +149,7 @@ importCore().then(core => {
<div class="chip small text-12 bg-green-pea">${classification.counter}</div>
<span class="text-14 text-green-pea">
for
<span class="underline"
>${classification.name}</span
></span
>
<a @click="${this.navigate}" target="${classification.name}" class="underline cursor-pointer text-green-pea">${classification.name}</a></span>
</div>
</div>
`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment