Skip to main content

AllUsersAttribute

Reference

  • Standard component that provides User attribute

Props

  • config : attribute configuration

Usage

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

// Example of config property:
const config ={
"fieldType": "Attribute",
"attributeType": "User",
"label": "Single Select User",
"isVisible": false,
"isEditable": false,
"isRelatedTypeGeolocationAttribute": false,
"attributeName": "aaaSingleSelectUserTest",
"isRequired": false,
"isMultiselect": false,
"userRoleFilters": [
"Agreement Creator"
],
"allowValueCaptureFromScan": false,
"actionSettingsShowAs": "Default",
"conditionalFormattingStyle": {}
}

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

UI

User Attribute

User Attribute After click on it

User Attribute search user name

User Attribute After selecting user