You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to hide an Object property and understand this feature is not supported per the docs: Hiding widgets is only supported for boolean, string, number and integer schema types
But in the live playground I'm able to successfully hide the Object property which is what I need, this is feature intended? If not, I think it should be offered to easily hide data types other than boolean, string, number and integer schema types. Here's a link to the playground.
The object property is hidden with the default theme:
The issue I'm running into is moving to material-ui as the theme does not hide the Object property. I think not only should we be able to hide Object properties but that it should be consistent across all themes. Currently the default theme, antd, fluent-ui and bootstrap-4 support hiding the Object property but not with material-ui or sematic-ui.
The object property is not hidden:
Is there any workaround available to achieve this behaviour?
Expected behavior
I expected to not be able to hide the Object property but does work but only in certain themes.
Actual behavior
The Object property is hidden in the live playground:
Here's the JSONSchema and UISchema I used in the playground:
Prerequisites
Description
I'm trying to hide an Object property and understand this feature is not supported per the docs:
Hiding widgets is only supported for boolean, string, number and integer schema types
But in the live playground I'm able to successfully hide the Object property which is what I need, this is feature intended? If not, I think it should be offered to easily hide data types other than
boolean, string, number and integer schema types
. Here's a link to the playground.The object property is hidden with the default theme:
The issue I'm running into is moving to material-ui as the theme does not hide the Object property. I think not only should we be able to hide Object properties but that it should be consistent across all themes. Currently the default theme, antd, fluent-ui and bootstrap-4 support hiding the Object property but not with material-ui or sematic-ui.
The object property is not hidden:
Is there any workaround available to achieve this behaviour?
Expected behavior
I expected to not be able to hide the Object property but does work but only in certain themes.
Actual behavior
The Object property is hidden in the live playground:
Here's the JSONSchema and UISchema I used in the playground:
{ "title": "Test Form", "type": "object", "properties": { "prop1": { "$ref": "#/definitions/TestFormProp1" }, "prop2": { "$ref": "#/definitions/TestFormProp2" } }, "required": [ "prop1", "prop2" ], "definitions": { "TestFormProp1": { "title": "Prop 1", "type": "object", "properties": { "field1": { "title": "Field1", "type": "integer" }, "field2": { "title": "Field2", "type": "integer" } }, "required": [ "field1", "field2" ] }, "TestFormProp2": { "title": "Prop 2", "type": "object", "properties": { "field3": { "title": "Field3", "type": "integer" }, "field4": { "title": "Field4", "type": "integer" } }, "required": [ "field3", "field4" ] } } }
{ "prop2": { "ui:widget": "hidden" } }
The text was updated successfully, but these errors were encountered: