marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 725 forks source link

Would be great if there was an easy way to hide/show a group of fields on a clic #1283

Open jbrownD3 opened 7 years ago

jbrownD3 commented 7 years ago

I have some entities with dozens of fields, I would like to be able to open/close or show/hide groups of fields with a click. I tried to do it with cssClasses, but since the cssClasses are applied to the input field and not the div that wraps the entire field, the labels are not hidden. I know I can define a complete template for my field, but I don't want to do that for the large number and all the types of fields I have.

I'm open to other ideas as well, I'm more of a Java developer and know enough jQuery to do damage...angular is currently frustrating me in many ways :)

Phocea commented 7 years ago

Being a java developper myself, I feel your pain @jbrownD3 :)

You can have a look a different approach to achieve this: https://github.com/marmelab/ng-admin/pull/657 https://github.com/marmelab/ng-admin/issues/978#issuecomment-199177210