MCPcopy Create free account
hub / github.com/MathMan05/Fermi / generateHTML

Method generateHTML

src/webpage/settings.ts:873–899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

871 readonly onSubmit: (str: Emoji | undefined | null) => void;
872 input!: WeakRef<HTMLInputElement>;
873 value!: Emoji | undefined | null;
874 localuser: Localuser;
875 clear: boolean;
876 guild: boolean;
877 constructor(
878 label: string,
879 onSubmit: (str: Emoji | undefined | null) => void,
880 owner: Options,
881 localuser: Localuser,
882 {
883 initEmoji = undefined,
884 clear = false,
885 guild = true,
886 }: {initEmoji?: undefined | Emoji; clear?: boolean; guild?: boolean} = {},
887 ) {
888 this.label = label;
889 this.owner = owner;
890 this.guild = guild;
891 this.onSubmit = onSubmit;
892 this.value = initEmoji;
893 this.localuser = localuser;
894 this.clear = !!clear;
895 }
896 generateHTML(): HTMLElement {
897 const outDiv = document.createElement("div");
898 outDiv.classList.add("flexltr");
899 const div = document.createElement("div");
900 div.classList.add("flexltr", "emojiForm");
901 const label = document.createElement("span");
902 label.textContent = this.label;

Callers

nothing calls this directly

Calls 4

addMethod · 0.80
clearMethod · 0.80
bindMethod · 0.45
changedMethod · 0.45

Tested by

no test coverage detected