Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
421 B
17 lines
421 B
4 years ago
|
const CheckboxField = (text: string, name: string) => {
|
||
|
const label = document.createElement('label');
|
||
|
label.classList.add('checkbox-field');
|
||
|
|
||
|
const input = document.createElement('input');
|
||
|
input.type = 'checkbox';
|
||
|
input.id = 'input-' + name;
|
||
|
|
||
|
const span = document.createElement('span');
|
||
|
span.innerText = text;
|
||
|
|
||
|
label.append(input, span);
|
||
|
|
||
|
return {label, input, span};
|
||
|
};
|
||
|
|
||
|
export default CheckboxField;
|