diff --git a/en/application-dev/reference/arkui-js/js-components-basic-input.md b/en/application-dev/reference/arkui-js/js-components-basic-input.md index 283e9aae6e5ad9a4e4cb72abf1e3cc716c1c40d0..1f10982593566d8ad21467a9613d260ab6e6a3ec 100644 --- a/en/application-dev/reference/arkui-js/js-components-basic-input.md +++ b/en/application-dev/reference/arkui-js/js-components-basic-input.md @@ -1,610 +1,239 @@ -# input +# input -The **** component provides an interactive interface to receive user input. It can be a radio button, check box, button, single-line text box, and more. +> **NOTE** +> +> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version. -## Required Permissions +The **\** component provides an interactive interface to receive user input. It can be a radio button, check box, button, single-line text box, and more. + +## Required Permissions None -## Child Component + +## Child Components Not supported -## Attributes - -In addition to the attributes in [Universal Attributes](js-components-common-attributes.md), the following attributes are supported. - - -
- | -- | -- | -- | -- | -
---|---|---|---|---|
- | -- | -- | -- | -Type of the input component. Available values include text, email, date, time, number, password, button, checkbox, and radio. -The text, email, date, time, number, and password types can be dynamically switched and modified. -The button, checkbox, and radio types cannot be dynamically modified. Available values include: -
|
-
- | -- | -- | -- | -Whether the <input> component is selected. This attribute is valid only when type is set to checkbox or radio. - |
-
- | -- | -- | -- | -- | -
- | -- | -- | -- | -Value of the input component. When type is radio, this attribute is mandatory and the value must be unique for radio buttons with the same name. - |
-
- | -- | -- | -- | -Content of the hint text. This attribute is available only when the component type is set to text, email, date, time, number, or password. - |
-
- | -- | -- | -- | -Maximum number of characters that can be entered in the input box. If no value is specified, the number of characters is not limited. - |
-
- | -- | -- | -- | -Dynamic modification is not supported. - -
|
-
- | -- | -- | -- | -Icon resource path before text input. This icon does not support click events and is unavailable for button, checkbox, and radio types. The supported icon image formats are JPG, PNG, and SVG. - |
-
- | -- | -- | -- | -Whether to display the character counter for an input box. This attribute takes effect only when maxlength is set. - |
-
- | -Array<MenuOption> - |
-- | -- | -- | -
- | -- | -- | -- | -- - | -
- | -- | -- | -- | -- | -
- | -- | -- | -- | -- | -
- | -- | -- | -- | -- | -
- | -- | -- | -- | -Whether to display the icon at the end of the password text box. The setting is valid only when type is set to password. - |
-
- | -- | -- | -
---|---|---|
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -- | -- | -
---|---|---|---|---|
- | -- | -- | -- | -- | -
- | -- | -- | -- | -- | -
- | -- | -- | -- | -Whether the font size changes with the system's font size settings. - - |
-
- | -- | -- | -- | -Color of the hint text in the single-line text box. This attribute is available when the component type is set to text, email, date, time, number, or password. - |
-
- | -- | -- | -- | -Font weight of the single-line text box or button. For details, see font-weight of the text component. - |
-
- | -- | -- | -- | -- | -
- | -- | -- | -
---|---|---|
- | -- | -Triggered when the checked status of the checkbox or radio button changes. - |
-