marmelab / marmelab/ng-admin

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

Open
#1,283 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
3.9k
Forks
703
PR merge metrics
No merged PRs in 30d

Description

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 :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how fields, their labels, and the cssClasses option are rendered, focusing on the wrapper around each field. Define a group-level show/hide interaction that works across field types without requiring complete custom templates, then verify that both inputs and labels respond consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.