-
Notifications
You must be signed in to change notification settings - Fork 35
Übersicht Input‐Komponenten
Martin edited this page Dec 11, 2024
·
6 revisions
Links:
- https://www.w3.org/TR/2011/WD-html5-20110525/the-input-element.html
- https://stackblitz.com/edit/vitejs-vite-kuamr7xv
- https://www.w3.org/TR/2011/WD-html5-20110525/common-input-element-attributes.html#dom-input-valueasdate
- https://www.w3.org/TR/2011/WD-html5-20110525/common-input-element-attributes.html#dom-input-valueasnumber
Komponente | _value |
getValue |
onInput |
onChange |
Bemerkungen |
---|---|---|---|---|---|
kol‑button | Stringified<StencilUnknown> |
Stringified<StencilUnknown> | undefined |
n/a | n/a | n/a |
kol‑button‑link | Stringified<StencilUnknown> |
Stringified<StencilUnknown> | undefined |
n/a | n/a | n/a |
kol‑combobox | string |
string | undefined |
string |
string |
n/a |
kol‑input‑checkbox | Stringified<StencilUnknown> |
StencilUnknown |
StencilUnknown |
StencilUnknown |
n/a |
kol‑input‑color | string |
string | undefined |
string |
string |
n/a |
kol‑input‑date | Iso8601 | Date | null |
string | Date | undefined |
Date | Iso8601 |
Date | Iso8601 |
n/a |
kol‑input‑email | string |
string | undefined |
string |
string |
n/a |
kol‑input‑file | n/a | FileList | null | undefined |
FileList | null |
FileList | null |
n/a |
kol‑input‑number | number | Iso8601 | null |
string | undefined |
string |
string |
[1] |
kol‑input‑password | string |
string | undefined |
string |
string |
n/a |
kol‑input‑radio | StencilUnknown |
StencilUnknown | undefined |
string | number |
string | number |
n/a |
kol‑input‑range | number |
number | undefined |
string |
number |
[2] |
kol‑input‑text | string |
string | undefined |
string |
string |
n/a |
kol‑select | Stringified<W3CInputValue[]> |
Stringified<W3CInputValue[]> | undefined |
Stringified<W3CInputValue[]> |
Stringified<W3CInputValue[]> |
n/a |
kol‑single‑select | string |
string | undefined |
string |
string |
[3] |
kol‑textarea | string |
string | undefined |
string |
string |
n/a |
Komponente | _value |
getValue |
onInput |
onChange |
Bemerkungen |
---|---|---|---|---|---|
kol‑button | Stringified<StencilUnknown> |
StencilUnknown |
n/a | n/a | n/a |
kol‑button‑link | Stringified<StencilUnknown> |
StencilUnknown |
n/a | n/a | n/a |
kol‑combobox | string |
string |
string |
string |
Wenn leer, ist es ein leerer String |
kol‑input‑checkbox | Stringified<StencilUnknown> |
StencilUnknown |
StencilUnknown |
StencilUnknown |
n/a |
kol‑input‑color | string |
string |
string |
string |
Standardwert #000 wird genommen, wenn leer |
kol‑input‑date | Iso8601 | Date | null |
Iso8601 | Date | null |
Date | Iso8601 |
Date | Iso8601 |
n/a |
kol‑input‑email | string |
string | undefined |
string |
string |
n/a |
kol‑input‑file | n/a | FileList | null | undefined |
FileList | null |
FileList | null |
n/a |
kol‑input‑number | number | Iso8601 | null |
string | undefined |
string |
string |
[1] |
kol‑input‑password | string |
string | undefined |
string |
string |
n/a |
kol‑input‑radio | StencilUnknown |
StencilUnknown | undefined |
string | number |
string | number |
n/a |
kol‑input‑range | number |
number | undefined |
string |
number |
[2] |
kol‑input‑text | string |
string | undefined |
string |
string |
n/a |
kol‑select | Stringified<W3CInputValue[]> |
Stringified<W3CInputValue[]> | undefined |
Stringified<W3CInputValue[]> |
Stringified<W3CInputValue[]> |
n/a |
kol‑single‑select | string |
string | undefined |
string |
string |
[3] |
kol‑textarea | string |
string | undefined |
string |
string |
n/a |
[1] Siehe auch #7125
[2] Unterschiedliche Types für onInput
und onChange
; Siehe
auch #6345
[3] Values sind als string
typed, die Optionen aber als Option<StencilUnknown>[]