forked from MapComplete/MapComplete
basic checkbox implementation
This commit is contained in:
parent
00fb99defe
commit
0e3d9d930b
4 changed files with 38 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
import {UIElement} from "../UIElement";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import { FilteredLayer } from "../../Logic/FilteredLayer";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
|
||||
|
||||
export class CheckBox extends UIElement{
|
||||
|
@ -24,9 +25,9 @@ export class CheckBox extends UIElement{
|
|||
|
||||
InnerRender(): string {
|
||||
if (this._data.data) {
|
||||
return this._showEnabled;
|
||||
return Translations.W(this._showEnabled).Render();
|
||||
} else {
|
||||
return this._showDisabled;
|
||||
return Translations.W(this._showDisabled).Render();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue