13 lines
706 B
TypeScript
13 lines
706 B
TypeScript
import {CustomButtonElement, CustomDivElement} from "./CustomHTMLElement";
|
|
|
|
export default function createChatSettingsLine(text: string) {
|
|
const element = new CustomDivElement('twitch-notes-settings-option-line');
|
|
const button = new CustomButtonElement('twitch-notes-settings-option-line-button');
|
|
const buttonContainer = new CustomDivElement('twitch-notes-settings-option-line-button-container');
|
|
const buttonContainerContent = new CustomDivElement('twitch-notes-settings-option-line-button-container-content', text);
|
|
|
|
buttonContainer.appendCustomChild(buttonContainerContent);
|
|
button.appendCustomChild(buttonContainer);
|
|
element.appendCustomChild(button);
|
|
return element;
|
|
} |