forked from MapComplete/MapComplete
Refactoring: move all code files into a src directory
This commit is contained in:
parent
de99f56ca8
commit
e75d2789d2
389 changed files with 0 additions and 12 deletions
19
src/UI/Base/DivContainer.ts
Normal file
19
src/UI/Base/DivContainer.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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