-
Notifications
You must be signed in to change notification settings - Fork 220
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
[feature-request] Validation errors #34
Comments
erdostom
changed the title
[feature-requet] Validation errors
[feature-request] Validation errors
Jul 17, 2015
Any news? |
I notice there's a port at https://github.com/herrhelms/meteor-gridforms which augments the CSS with some styling for errors, perhaps it could be adapted here. |
For anyone wanting to add the validation on their own based on metero-gridforms: Add this css to the style sheet .grid-form [data-row-span] [data-field-span].grid-form-error.focus { background: #fffad4; cursor: text; }
.grid-form [data-row-span] [data-field-span].grid-form-error, .grid-form [data-row-span] [data-field-span].grid-form-error:hover { background: #FE826D }
.grid-form .grid-form-help { font-size:75%; margin:-5px 0; color:rgba(33,33,33,.45); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } Add this markup to the field when adding a validation error <div data-row-span="1">
<div data-field-span="1" class="grid-form-error">
<label>Field 1</label>
<input type="text">
<span class="grid-form-help">Required Field </span>
</div>
</div> |
Added pull request #66 to add the styles into the sass/css. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know this is part of the TODO list, and I just wanted to vote that it go on top of the queue. It would really be awesome if there were a place and styling to display any errors that field-specific.
Domo arigato
The text was updated successfully, but these errors were encountered: