TextField
To create a simple textfield, use the input element.
let elements = [
{
type: "input"
}
];
Supported types:
textnumberand more... as outlined here
new TextField().set({
type: "text",
placeholder: "Enter swimming time"
});