Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide a row from editionView depending on some conditions #755

Closed
geryslava opened this issue Oct 30, 2015 · 2 comments
Closed

Hide a row from editionView depending on some conditions #755

geryslava opened this issue Oct 30, 2015 · 2 comments

Comments

@geryslava
Copy link

Hi

I've used ng-admin for only 2 weeks, so, please, forgive me if I've misunderstood something.

I would like to be able to hide a whole row from editionView - label+field - depending on current value of some other field.

If I set cssClasses to 'ng-hide' it hides only fields but not the label and the row still exists.

Is there any solution of my issue?

Thanks a lot!

@fzaninotto
Copy link
Member

Nope, you can't do that with field configuration ; you'll have to use a custom template for the edition view, see for instance https://github.com/marmelab/ng-admin-demo/blob/gh-pages/js/products/config.js#L90.

I know it's a bummer, so I'm keeping your issue open as a feature request.

@geryslava
Copy link
Author

Thank you for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants