-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngMessages render adjustment #13009
Comments
Can you open a PR with this change and a corresponding test that shows what you want to accomplish? |
Or as a plnkr.co |
http://plnkr.co/edit/SmFu5bIsFXdg7gbmoGry The goal is show a backdrop and pull the input in front of it to highlight were the user should correct. The plunkr is pretty basic but shows it. I'D like to reach it by decorating the ngMessages. In the earlier versions we decorated the renderElementClasses and used the bool parameter to determine if we have to show the backdrop or not. The current render class has a collection input parameter. Thanks in advance. |
So the current plnkr does not show what you actually want, but a workaround? Because I see no decorator. |
Updated a plunkr with a decorator. I'd like to decorate the render function to show and hide the backdrop according to the render result. Hope it's better now. Thx |
Basically, what you want is some sort of flag that indicates if there is an error (message)? Or do you need to know exactly which messages are currently displayed? |
Hi, I Just want a flag, thats all. Thanks in advance ----- Eredeti üzenet ----- Basically, what you want is some sort of flag that indicates if there is an error (message)? Or do you need to know exactly which messages are currently displayed? |
Hi!
Lately we were using the ngMessages with a decorator to show a backdrop on errors. With the new version the render method inside the directive controller is not easy to decorate with such business logic to decide if there is an error or not. Any way to solve this?
Suggestion is like to add a : return unmatchedMessages.length !== totalMessages; to the render method end. (angular-messages.js line 391)
The text was updated successfully, but these errors were encountered: