Skip to main content

NumericAttribute

Reference

  • Standard component that provides Numeric attribute

Props

  • config : attribute configuration

Usage

const { protrakComponents } = React.useContext(customWidgetContext);
const { Attribute } = protrakComponents;
Example of config property:
const config ={
"fieldType": "Attribute",
"attributeType": "Numeric",
"label": "Numeric",
"isVisible": true,
"isEditable": false,
"isRelatedTypeGeolocationAttribute": false,
"width": 0,
"attributeName": "aaaNumericAttr",
"isRequired": false,
"allowValueCaptureFromScan": false,
"actionSettingsShowAs": "Default",
"dashboardLayoutWidgetActionSettings": [],
"formatConditions": [],
"editor": "Default",
};
  return (
Attribute(config).renderInput(value, onEdit)
);
// pass configuration and onEdit function

UI

Numeric Attribute