Skip to main content

TextField

To create a simple textfield, use the input element.

let elements = [
{
type: "input"
}
];

Supported types:

  • text
  • number and more... as outlined here
new TextField().set({
type: "text",
placeholder: "Enter swimming time"
});