Components
Input field
Tag: <we-input-field>
Standard module: we_input_field
Field-aware input bound to an object field and record. It also exposes input focus and validation methods.
Features
- Uses object and field context to display an editable value and honors field metadata for required state.
- Forwards input methods and common DOM events from the nested control; emits
change.
Public parameters
| JavaScript property | HTML attribute | Type | Initial value | Purpose |
|---|---|---|---|---|
fieldLabel |
field-label |
String | — |
Label for the field. |
fieldType |
field-type |
String | — |
Field type. |
fieldValue |
field-value |
String | — |
Current field value. |
readOnly |
read-only |
Boolean | false |
Whether editing is disabled. |
required |
required |
Boolean | false |
Whether the value is required. |
recordId |
record-id |
String | — |
ID of the record in context. |
objectName |
object-name |
String | — |
Object API name in context. |
fieldName |
field-name |
String | — |
Field API name. |
Public methods
focus()is exposed by@apiFunction.blur()is exposed by@apiFunction.click()is exposed by@apiFunction.select()is exposed by@apiFunction.checkValidity()is exposed by@apiFunction.reportValidity()is exposed by@apiFunction.
Events
changeis emitted as a DOM custom event.
The package also declares a JavaScript-only public value property through wEngine.publicProperties; it is not an observed HTML attribute.
Source: working/environment_modules/standard/we_input_field/WebComponent/WeInputField.js.