Began implementing Sleeve UI page

This commit is contained in:
danielyxie
2019-01-10 00:20:04 -08:00
parent 7d51182c60
commit d9b865ef17
9 changed files with 227 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
import { createElement } from "./createElement";
export function createOptionElement(text: string, value: string="") {
const sanitizedValue: string = value;
if (sanitizedValue === "") { sanitizedValue = text; }
return createElement("option", {
text: text,
value: sanitizedValue,
});
}