ng-fab-form icon indicating copy to clipboard operation
ng-fab-form copied to clipboard

Feature request - required and ng-pattern validation for ui-select

Open baskaranr opened this issue 7 years ago • 2 comments

baskaranr avatar Oct 13 '16 09:10 baskaranr

I agree, that this would be a nice feature. I don't know when I will have time for that though. In the meantime feel free to submit a pr. The best way to do it, would be probably to allow the ngFabFormsValidationsDirective to take parameters for restrict and the name. This would allow to apply the validations directive to any element, e.g. something like that:

ngFabFormsValidationsDirective('ui-select',{restrict:'EA'});

https://github.com/johannesjo/ng-fab-form/blob/master/src/ng-fab-form-validations-directive-f.js

johannesjo avatar Oct 14 '16 13:10 johannesjo

I tried validation for ui-select by adding

angular.module('ngFabForm') .directive('uiSelect', ['ngFabFormValidationsDirective', function (ngFabFormValidationsDirective) { 'use strict';

    return ngFabFormValidationsDirective;
}]);

`

{{$select.selected.Text}}
`

But the validation is not working.

baskaranr avatar Oct 17 '16 15:10 baskaranr