forked from MapComplete/MapComplete
Use OSM-settings to keep track of the chosen license; change tree marker to circle (fix #24)
This commit is contained in:
parent
b2704d0ab8
commit
b1775d8184
15 changed files with 83 additions and 57 deletions
|
@ -33,6 +33,7 @@ export abstract class UIElement {
|
|||
public onClick(f: (() => void)) {
|
||||
this._onClick = f;
|
||||
this.Update();
|
||||
return this;
|
||||
}
|
||||
|
||||
Update(): void {
|
||||
|
@ -52,10 +53,8 @@ export abstract class UIElement {
|
|||
}
|
||||
|
||||
if (this._onClick !== undefined) {
|
||||
console.log("Registering")
|
||||
const self = this;
|
||||
element.onclick = () => {
|
||||
console.log("Clicked!")
|
||||
self._onClick();
|
||||
}
|
||||
element.style.cursor = "pointer";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue