AttachmentAttribute
Reference
- Standard component that provides Attachment attribute
Props
- config : attribute configuration
Usage
const { protrakComponents } = React.useContext(customWidgetContext);
const { Attribute } = protrakComponents;
// Example of config property:
const config = {
"fieldType": "Attribute",
"attributeType": "Attachment",
"label": "Attachment",
"isVisible": false,
"isEditable": false,
"isRelatedTypeGeolocationAttribute": false,
"attributeName": "aaaAttachmentAttrTest",
"isRequired": false,
"regExErrorMessage": "",
"allowValueCaptureFromScan": false,
"actionSettingsShowAs": "Default",
"editor": "Default",
"renderer": "Default",
"conditionalFormattingStyle": {}
}
return (
Attribute(config).renderInput(value, onEdit)
);
// pass configuration and onEdit function
UI