inputs

require(["esri/form/elements/support/inputs"], function(inputs) { /* code goes here */ });
Object: esri/form/elements/support/inputs
Since: ArcGIS API for JavaScript 4.16

A convenience module for importing Input classes when developing with TypeScript. For example, rather than importing form elements one at a time like this:

import TextAreaInput from "esri/form/elements/inputs/TextAreaInput";
import TextBoxInput from "esri/form/elements/inputs/TextBoxInput";

You can use this module to import them on a single line:

import { TextAreaInput, TextBoxInput } from "esri/form/elements/inputs";

This module also allows you to implement type guards on the form element inputs, making your code smarter.

import { Input } from "esri/form/elements/inputs";

function logFormElementInput(input: Input): void {
  if (input.type === "text-area") {
    console.log("Form element input type is TextAreaInput");
  }
  else {
    // The compiler knows the content element must be `text-area` | `text-box`
    console.log("The value is not a valid form element input.")
  }
}