dominar icon indicating copy to clipboard operation
dominar copied to clipboard

Lightweight bootstrap validator inspired by Laravel

Results 11 dominar issues
Sort by recently updated
recently updated
newest added

In the readme file the documentation for the registerAsync method is the following ` Dominar.Validator.registerAsync('username_availability', function(username, attribute, parameters, passes) {.....} ` I would like to pass some parameters to the...

A linked field will automatically validate if it's linked field has a value. Useful for `same` and `confirmed` rule when validating passwords are the same, email addresses, etc.

Instead of: ``` javascript first_name: { rules: 'required' } ``` Allow for ``` javascript first_name: 'required' ``` Useful when no custom options are needed.

Async rules fail and show "success" even if they get 200 OK from the api ![image](https://cloud.githubusercontent.com/assets/12816402/11428340/99b7e7ea-946a-11e5-8dde-c7a3c1dec0fd.png) ``` javascript Dominar.Validator.registerAsync('username_taken', function (username, attribute, parameters, passes) { $.get(url, {username: username}, passes) .fail(function...

Especially useful for `remoteRule` so it won't fire new requests if value was already validated and hasn't changed.

The framework I'm using (Meteor) can remove controls after Dominar has been told about them. Not hide them, but take them out of the DOM. I believe Angular and React...

``` javascript removeField('name'); removeField(Node); ```

Abstract the styling out and ability to switch the validator to using a new framework: - Foundation - Semantic UI - Pure

enhancement

- don't fire any events, highlighting, etc - simply determines if field is valid - support async by passing a callback