Implemented Sleeve UI. Compiled but untested

This commit is contained in:
danielyxie
2019-01-14 19:34:04 -08:00
parent d9b865ef17
commit bcb231a966
19 changed files with 1058 additions and 573 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
import { createElement } from "./createElement";
export function createOptionElement(text: string, value: string="") {
const sanitizedValue: string = value;
export function createOptionElement(text: string, value: string=""): HTMLOptionElement {
let sanitizedValue: string = value;
if (sanitizedValue === "") { sanitizedValue = text; }
return createElement("option", {
text: text,
value: sanitizedValue,
});
}) as HTMLOptionElement;
}