Initializer
Input(String? name = null, InputType|ButtonType type = ..., String? accept = null, Boolean? autoComplete = null, Boolean? autoFocus = null, Boolean? checked = null, String? dirName = null, Boolean? disabled = null, String? form = null, String? formAction = null, String? formEnctype = null, String? formMethod = null, String? formTarget = null, Boolean? formNoValidate = null, InputMode? inputMode = null, String? list = null, Integer? maxLength = null, Integer? minLength = null, Integer|String? max = null, Integer|String? min = null, Boolean? multiple = null, String? pattern = null, String? placeholder = null, Boolean? readOnly = null, Boolean? required = null, Integer? size = null, Integer? step = null, String? valueOf = null, String? alt = null, String? src = null, Integer? height = null, Integer? width = null, String? id = null, CssClass classNames = [], String? style = null, String? accessKey = null, String? contextMenu = null, TextDirection? dir = null, Boolean? draggable = null, DropZone? dropZone = null, Boolean? inert = null, Boolean? hidden = null, String? lang = null, Boolean? spellcheck = null, Integer? tabIndex = null, String? title = null, Boolean? translate = null, Aria? aria = null, NonstandardAttributes nonstandardAttributes = ..., DataContainer data = ...)
Parameters:
  • name = null
  • type = text

    Controls the data type (and associated control) of the element.

  • accept = null

    May be specified to provide user agents with a hint of what file types will be accepted.

  • autoComplete = null

    Can be used to hint to the user agent how to, or indeed whether to, provide the information prefilling feature (when available).

  • autoFocus = null
  • checked = null

    Specifies that the input should be pre-selected when the page loads . Only valid when type is checkbox or radio

  • dirName = null

    Enables the submission of the directionality of the element, and gives the name of the field that contains this value during form submission.

  • disabled = null
  • form = null
  • formAction = null

    Specifies the action URL when the form is submitted. Only valid when type is submit or image

  • formEnctype = null

    Specifies how the form-data should be encoded when submitting it to the server. Only valid when type is submit or image

  • formMethod = null

    Defines the HTTP method for sending data to the action URL. Only valid when type is submit or image

  • formTarget = null

    Specifies where to display the response that is received after submitting the form. Only valid when type is submit or image

  • formNoValidate = null
  • inputMode = null

    Specifies what kind of input mechanism is the most helpful for this input.

  • list = null

    Refers to a DataList element that contains pre-defined options for this field.

  • maxLength = null

    Specifies the maximum number of characters allowed.

  • minLength = null

    Specifies the minimum number of characters allowed.

  • max = null

    Specifies a maximum value for this field.

  • min = null

    Specifies a minimum value for this field.

  • multiple = null

    Specifies that a user can enter more than one value in this field.

  • pattern = null

    Specifies a regular expression that this field's value is checked against.

  • placeholder = null

    Specifies a short hint that describes the expected value of this field.

  • readOnly = null
  • required = null
  • size = null

    Specifies the width, in characters.

  • step = null

    Specifies the legal number intervals for this input field.

  • valueOf = null
  • alt = null

    Provides the textual label for the button for users and user agents who cannot use the image. Use only when type is image

  • src = null

    Specifies the URL of the image to use as a button (only when type is image)

  • height = null

    Specifies the height of he image (only when type is image)

  • width = null

    Specifies the width of he image (only when type is image)

  • id = null
  • classNames = []
  • style = null
  • accessKey = null
  • contextMenu = null
  • dir = null
  • draggable = null
  • dropZone = null
  • inert = null
  • hidden = null
  • lang = null
  • spellcheck = null
  • tabIndex = null
  • title = null
  • translate = null
  • aria = null
  • nonstandardAttributes = empty
  • data = empty
Attributes
acceptSource Codeshared String? accept

May be specified to provide user agents with a hint of what file types will be accepted.

altSource Codeshared String? alt

Provides the textual label for the button for users and user agents who cannot use the image. Use only when type is image

attributesSource Codeshared actual default <String->Object>[] attributes
Refines FormElement.attributes ultimately refines Node.attributes
autoCompleteSource Codeshared Boolean? autoComplete

Can be used to hint to the user agent how to, or indeed whether to, provide the information prefilling feature (when available).

checkedSource Codeshared Boolean? checked

Specifies that the input should be pre-selected when the page loads . Only valid when type is checkbox or radio

dirNameSource Codeshared String? dirName

Enables the submission of the directionality of the element, and gives the name of the field that contains this value during form submission.

formActionSource Codeshared String? formAction

Specifies the action URL when the form is submitted. Only valid when type is submit or image

formEnctypeSource Codeshared String? formEnctype

Specifies how the form-data should be encoded when submitting it to the server. Only valid when type is submit or image

formMethodSource Codeshared String? formMethod

Defines the HTTP method for sending data to the action URL. Only valid when type is submit or image

formTargetSource Codeshared String? formTarget

Specifies where to display the response that is received after submitting the form. Only valid when type is submit or image

heightSource Codeshared Integer? height

Specifies the height of he image (only when type is image)

inputModeSource Codeshared InputMode? inputMode

Specifies what kind of input mechanism is the most helpful for this input.

listSource Codeshared String? list

Refers to a DataList element that contains pre-defined options for this field.

maxSource Codeshared Integer|String? max

Specifies a maximum value for this field.

maxLengthSource Codeshared Integer? maxLength

Specifies the maximum number of characters allowed.

minSource Codeshared Integer|String? min

Specifies a minimum value for this field.

minLengthSource Codeshared Integer? minLength

Specifies the minimum number of characters allowed.

multipleSource Codeshared Boolean? multiple

Specifies that a user can enter more than one value in this field.

patternSource Codeshared String? pattern

Specifies a regular expression that this field's value is checked against.

placeholderSource Codeshared String? placeholder

Specifies a short hint that describes the expected value of this field.

sizeSource Codeshared Integer? size

Specifies the width, in characters.

srcSource Codeshared String? src

Specifies the URL of the image to use as a button (only when type is image)

stepSource Codeshared Integer? step

Specifies the legal number intervals for this input field.

tagSource Codeshared actual default Tag tag

The tag name and type.

Refines Node.tag
typeSource Codeshared InputType|ButtonType type

Controls the data type (and associated control) of the element.

widthSource Codeshared Integer? width

Specifies the width of he image (only when type is image)

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Node
Inherited Methods
Methods inherited from: Object