Input SObject Field

Usage
Simply add to your html markup:
<c-input-sobject-field
object-api-name={inputMapping.sourceObject}
field={inputMapping.sourceField}
object-list={objectList}
filter-options-fn={filterOptionsFn}
onchange={handleChange}
></c-input-sobject-field>
Properties
| Name | required? | type | Description/Example |
|---|---|---|---|
object-list | required | Array of Objects | [{label: 'Account', apiName: 'Account'} |
object-api-name | optional | String | Object Api Name to start with |
field | optional | String | Field Api Name to start with |
filter-options-fn | optional | Function | Function to filter options |
Methods
| Name | Arguments | Description/Example |
|---|---|---|
reportValidity | Boolean | Hide/Show Errors |
Methods
| Name | Description/Example |
|---|---|
change (onchange) | When user selects value |
validity (onvalidity) | When validity state changed |