The <input> tag supports several type of inputs via the type property. Currently we have Button, CheckBox, FileUpload, Password, RadioButton, Submit, and Text.
Some of these types support particularly different features, and are logically different. However, many can be grouped into a single class with a variable type property. Determine which, if any, should be grouped together. Also determine if subclassing is necessary.
Keep in mind, any of these properties may be wrapped at any time by calling watchProperty on that instance.
This is the complete list of type values. Keep in mind that many are only partially supported.
button
checkbox
color
date
datetime
datetime-local
email
file
hidden
image
month
number
password
radio
range
reset
search
submit
tel
text
time
url
week
The parameters to support are:
accept - file only
autocomplete - ignored if hidden, password, checkbox, radio, file, button, submit, reset, or image
autofocus - ignored if hidden
autosave
checked - radio, checkbox only
disabled
form
formaction - submit, image only
formenctype - submit, image only
formmethod - submit, image only
formnovalidate - submit, image only
formtarget - submit, image only
height - image only
inputmode - text, password, email, url only
list - ignored if hidden, checkbox, radio, file, button, submit, reset, or image
max
maxlength - text, email, search, password, tel, url only
min
minlength - text, email, search, password, tel, url only
multiple - email, file only
name
pattern - text, search, tel, urlemail only (not password)
placeholder - text, search, tel, urlemail only (not password)
readonly - ignored if hidden, range, color, checkbox, radio, file, button, submit, reset, or image
required - ignored if hidden, image, button, submit, reset, or image
selectionDirection
size - text, search, tel, url, email, password only
The
<input>
tag supports several type of inputs via thetype
property. Currently we haveButton
,CheckBox
,FileUpload
,Password
,RadioButton
,Submit
, andText
.Some of these types support particularly different features, and are logically different. However, many can be grouped into a single class with a variable
type
property. Determine which, if any, should be grouped together. Also determine if subclassing is necessary.Keep in mind, any of these properties may be wrapped at any time by calling
watchProperty
on that instance.This is the complete list of
type
values. Keep in mind that many are only partially supported.button
checkbox
color
date
datetime
datetime-local
email
file
hidden
image
month
number
password
radio
range
reset
search
submit
tel
text
time
url
week
The parameters to support are:
accept
-file
onlyautocomplete
- ignored ifhidden
,password
,checkbox
,radio
,file
,button
,submit
,reset
, orimage
autofocus
- ignored ifhidden
autosave
checked
-radio
,checkbox
onlydisabled
form
formaction
-submit
,image
onlyformenctype
-submit
,image
onlyformmethod
-submit
,image
onlyformnovalidate
-submit
,image
onlyformtarget
-submit
,image
onlyheight
-image
onlyinputmode
-text
,password
,email
,url
onlylist
- ignored ifhidden
,checkbox
,radio
,file
,button
,submit
,reset
, orimage
max
maxlength
-text
,email
,search
,password
,tel
,url
onlymin
minlength
-text
,email
,search
,password
,tel
,url
onlymultiple
-email
,file
onlyname
pattern
-text
,search
,tel
,url
email
only (notpassword
)placeholder
-text
,search
,tel
,url
email
only (notpassword
)readonly
- ignored ifhidden
,range
,color
,checkbox
,radio
,file
,button
,submit
,reset
, orimage
required
- ignored ifhidden
,image
,button
,submit
,reset
, orimage
selectionDirection
size
-text
,search
,tel
,url
,email
,password
onlyspellcheck
src
-image
onlystep
tabindex
value
- required forradio
andcheckbox
width
-image
only