Hi,
I want the grid to display as a table, not a group. How can I do that?
I want it like this:
I can do that if I remove the “type” in “options.detail” but that will invalid my disable rule.
Any ideas? Thanks
UI Schema:
{
“type”: “HorizontalLayout”,
“elements”: [
{
“type”: “Control”,
“scope”: “#/properties/configData”,
“options”: {
“detail”: {
“type”: “HorizontalLayout”,
“elements”: [
{
“type”: “Control”,
“scope”: “#/properties/DateFieldTest”
},
{
“type”: “Control”,
“scope”: “#/properties/CarPayGroup”
},
{
“type”: “Control”,
“scope”: “#/properties/XRefCode”
}
],
“rule”: {
“effect”: “DISABLE”,
“condition”: {
“scope”: “#/properties/XRefCode”,
“schema”: { “const”: “cartypetwotest” }
}
}
}
}
}
]
}
Schema:
{
“type”: “object”,
“properties”: {
“configData”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“DateFieldTest”: {
“type”: “string”,
“title”: “Date Field”,
“format”: “date”
},
“IsGoodCar”: {
“type”: “boolean”,
“title”: “Is Good Car”
},
“CarPayGroup”: {
“type”: “string”,
“title”: “Pay Group”,
“oneOf”: [
{
“const”: “Hourly”,
“title”: “Hourly”
},
{
“const”: “Salary”,
“title”: “Salary”
}
]
},
“XRefCode”: {
“type”: “string”,
“title”: “XRefCode”
}
}
}
}
}
}
Data:
{
“configData”: [
{
“IsGoodCar”: false,
“CarPayGroup”: “Hourly”,
“XRefCode”: “cartypeonetest”,
“DateFieldTest”: “2023-08-04”
},
{
“XRefCode”: “cartypetwotest”,
“IsGoodCar”: true,
“DateFieldTest”: “2023-06-06”,
“CarPayGroup”: “Hourly”
}
]
}