1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-04-22 02:42:13 +00:00

Implemented (#16)

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-02-08 12:25:07 +01:00 committed by GitHub
parent 6eb91f57a6
commit 08ffa73b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,4 +203,11 @@ export default class DOMElement<T extends HTMLElement = HTMLElement> {
return this.placeAsChildOf(item)
}
}
public appendChild(item: DOMElement | HTMLElement) {
if (item instanceof DOMElement) {
item = item.item
}
this.item.appendChild(item)
}
}