To use CheckboxFieldFF, you can import the component from the @dhis2/ui library
import { CheckboxFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | Provided by Final Form Field |
||
| meta | custom | Provided by Final Form Field |
||
| error | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use FieldGroupFF, you can import the component from the @dhis2/ui library
import { FieldGroupFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| children | node | |||
| label | string | |||
| name | string | |||
| required | boolean |
To use FileInputFieldFF, you can import the component from the @dhis2/ui library
import { FileInputFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props provided by Final Form Field |
||
| meta | custom | meta props provided by Final Form Field |
||
| buttonLabel | string | |||
| disabled | boolean | |||
| error | boolean | |||
| multifile | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| value | arrayOf(instanceOf(File)) │ '' |
To use InputFieldFF, you can import the component from the @dhis2/ui library
import { InputFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props received from Final Form Field |
||
| meta | custom | meta props received from Final Form Field |
||
| error | boolean | |||
| loading | boolean | |||
| showLoadingStatus | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use MultiSelectFieldFF, you can import the component from the @dhis2/ui library
import { MultiSelectFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props provided by Final Form Field |
||
| meta | custom | meta props provided by Final Form Field |
||
| error | boolean | |||
| loading | boolean | |||
| options | arrayOf(\{<br/> "label": "string",<br/> "value": "string"<br/>}) |
[] |
||
| showLoadingStatus | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use RadioFieldFF, you can import the component from the @dhis2/ui library
import { RadioFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props received from Final Form Field |
||
| meta | custom | meta props received from Final Form Field |
||
| error | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use SingleSelectFieldFF, you can import the component from the @dhis2/ui library
import { SingleSelectFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props received from Final Form Field |
||
| meta | custom | meta props received from Final Form Field |
||
| options | arrayOf(\{<br/> "label": "string",<br/> "value": "string"<br/>}) |
* | ||
| error | boolean | |||
| loading | boolean | |||
| showLoadingStatus | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use SwitchFieldFF, you can import the component from the @dhis2/ui library
import { SwitchFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props received from Final Form Field |
||
| meta | custom | meta props received from Final Form Field |
||
| error | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |
To use TextAreaFieldFF, you can import the component from the @dhis2/ui library
import { TextAreaFieldFF } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| input | custom | input props received from Final Form Field |
||
| meta | custom | meta props received from Final Form Field |
||
| error | boolean | |||
| loading | boolean | |||
| showLoadingStatus | boolean | |||
| showValidStatus | boolean | |||
| valid | boolean | |||
| validationText | string | |||
| onBlur | function | |||
| onFocus | function |