Skip to main content

DateAttribute

Reference

  • Standard component that provides Date attribute

Props

  • config : attribute configuration

Usage

const { protrakComponents } = React.useContext(customWidgetContext);
const { Attribute } = protrakComponents;

// Example of config property:
const config = {
"fieldType": "Attribute",
"attributeType": "Date",
"label": "Date",
"isVisible": false,
"isEditable": false,
"isRelatedTypeGeolocationAttribute": false,
"attributeName": "ADate",
"isRequired": false,
"regExErrorMessage": "",
"allowValueCaptureFromScan": false,
"actionSettingsShowAs": "Default",
"editor": "Default",
"renderer": "Default"
}

return (
Attribute(config).renderInput(value, onEdit)
);
// pass configuration and onEdit function

UI

Date Attribute Date Attribute Date Attribute