This commit is contained in:
Jesper Møller Jensen
2023-02-13 12:36:03 +13:00
parent dd020b6aca
commit fa0ee23ef4

View File

@@ -44,6 +44,8 @@ export class UmbInputRadioButtonListElement extends FormControlMixin(UmbLitEleme
}
render() {
console.log('list', this.list);
if (!this.list) return nothing;
return html`<form>
<uui-form @change="${this._setSelection}">
@@ -54,7 +56,7 @@ export class UmbInputRadioButtonListElement extends FormControlMixin(UmbLitEleme
</form>`;
}
renderRadioButton(item: any) {
renderRadioButton(item: { key: string; label: string }) {
return html`<uui-radio value="${item.key}" label="${item.label}"></uui-radio>`;
}
}