Ajout d'un panneau vertical pour le resultat de la recerche

This commit is contained in:
EpicKiwi 2026-06-07 12:22:41 +02:00
parent f7e5bb37bf
commit 7d45e2f717
Signed by: epickiwi
GPG key ID: C4B28FD2729941CE
8 changed files with 549 additions and 18 deletions

26
js/components/feature.js Normal file
View file

@ -0,0 +1,26 @@
import "./feature-short-header.js"
const TEMPLATE = document.createElement("template")
TEMPLATE.innerHTML = `
<camp-feature-short-header class="feature-header" ></camp-feature-short-header>
`
export class FeatureElement extends HTMLElement {
feature
connectedCallback(){
this.updateContent()
}
updateContent(){
this.replaceChildren(TEMPLATE.content.cloneNode(true))
let header = this.querySelector("camp-feature-short-header")
header.feature = this.feature
header.updateContent()
}
}
customElements.define("camp-feature", FeatureElement)