Skip to main content

DateTimeAttribute

Reference

  • Standard component that provides DateTimeTime attribute

Props

  • config : attribute configuration

Usage

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

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

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

UI

DateTime Attribute DateTime Attribute DateTime Attribute