forked from MapComplete/MapComplete
Repair import flow
This commit is contained in:
parent
8c7bb92f8a
commit
e1cdb75001
7 changed files with 85 additions and 74 deletions
20
UI/Base/DivContainer.ts
Normal file
20
UI/Base/DivContainer.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue