MapComplete/UI/Base/DivContainer.ts
Pieter Vander Vennet e1cdb75001 Repair import flow
2023-01-12 01:16:22 +01:00

20 lines
500 B
TypeScript

import { UIElement } from "../UIElement"
import BaseUIElement from "../BaseUIElement"
/**
* Introduces a new element which has an ID
* Mostly a workaround for the import viewer
*/
export default class DivContainer extends BaseUIElement {
private readonly _id: string
constructor(id: string) {
super()
this._id = id
}
protected InnerConstructElement(): HTMLElement {
const e = document.createElement("div")
e.id = this._id
return e
}
}