etoolbox-authoring-kit icon indicating copy to clipboard operation
etoolbox-authoring-kit copied to clipboard

[EAK-246] Implement the ability to disable Multifield via "disabled" property / DependsOn action

Open smiakchilo opened this issue 4 years ago • 0 comments

Consider the following code:

@DialogField(disabled=true)
@MultiField
@DependsOn(action = DependsOnActions.DISABLED, value = "true")
private List<MyClass> myClasses;

Currently, neither disabled=true nor the DependsOn action does not appear to have any effect on the multifield. (Basically seems an Adobe/Granite issue, but anyway affects user experience). Expected result: at minimum, the "Add" button of the multifield is disabled. Ideally, the content of every multifield item is disabled, as ordinary dialog fields appear in similar circumstances. Probably, the expected result is more easily achieved via a DepensOn action. Then we can discuss whether it is appropriate that @DialogField(disabled=true) will result in storing the same DepensOn action under the hood

smiakchilo avatar Nov 16 '21 13:11 smiakchilo