From e1568876b8a5f57b8d15f2708353977e229dd611 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 21 Jan 2021 05:53:59 +0100 Subject: [PATCH] Refactor htmlElement to Template literals Makes it a bit easier to read. --- UI/Input/RadioButton.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/Input/RadioButton.ts b/UI/Input/RadioButton.ts index 33a0f0b..b04ce01 100644 --- a/UI/Input/RadioButton.ts +++ b/UI/Input/RadioButton.ts @@ -74,14 +74,14 @@ export class RadioButton extends InputElement { for (let i = 0; i < this._elements.length; i++){ const el = this._elements[i]; const htmlElement = - '' + - '' + - '
'; + `` + + `` + + `
`; body += htmlElement; } - return "
" + body + "
"; + return `
${body}
`; } public ShowValue(t: T): boolean {