Skip to main content

StateAttribute

Reference

  • Standard component is used to display State name

Props

  • config : attribute configuration

Usage

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