Hi,
I'm trying to customize my Editor widget pop-up, so that the field accept 2 decimal places.
I am using 3.29 API.
I tried below code and it didn't work :
fieldInfos: [
{
fieldName: 'LENGTH',
label: 'Length (m)',
isEditable: true,
format: {
places: 2,
digitSeparator: true
}
},
{
fieldName: 'SLOPE',
label: 'Slope (Degree)',
format: {
places: 2,
digitSeparator: true
}
},
{
fieldName: 'DIAMETER',
label: 'Diameter (cm)',
format: {
places: 2,
digitSeparator: true
}
},
{
fieldName: 'COLORTYPE',
label: 'TYPE',
},
],
Thanks,
Mayur
Solved! Go to Solution.
Mayur,
Unfortunately, ESRI has not provided any options to format the displayed value. The PopupTemplate has option to format the values, but not with AttributeInspector.
Mayur,
Unfortunately, ESRI has not provided any options to format the displayed value. The PopupTemplate has option to format the values, but not with AttributeInspector.
Hi Robert,
Thank you very much for prompt reply.
Thanks,
Mayur