Version details :
“@jsonforms/angular”: “3.1.0”,
“@jsonforms/angular-material”: “3.1.0”,
“@jsonforms/core”: “3.1.0”,
For some reason the option “trim” : true (under “options”) is not rendering as expected. We have a field which takes 100% width and we want to either reduce to 50% or trim the field width to the text length. Attached screenshot of the UI and the json used to render the schema. The field which need to be trimmed is the one which has a read only value Micron 8.0.0-RELEASE.
JSON Schema :
{
“uiDefinition”: {
“uiSchema”: {
“type”: “VerticalLayout”,
“elements”: [
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/micronDeployVersion",
"label": "Micron Deploy Version",
"options" : {"trim" : true}
}
]
}
]
},
"uiDataSchema": {
"type": "object",
"properties": {
"micronDeployVersion": {
"type": "string",
"readOnly" : true
}
}
},
"uiDefaults": {
"micronDeployVersion" : "8.0.0-RELEASE",
"singlePodToggle": true
}
}
}