ng-disabled vn-textfield
This commit is contained in:
parent
39f5f55714
commit
5f9160c172
|
@ -5,6 +5,7 @@
|
||||||
name="*[name]*"
|
name="*[name]*"
|
||||||
ng-model="*[model]*"
|
ng-model="*[model]*"
|
||||||
vn-validation="*[rule]*"
|
vn-validation="*[rule]*"
|
||||||
|
ng-disabled="*[disable]*"
|
||||||
*[enabled]*/>
|
*[enabled]*/>
|
||||||
<button type="button" class="mdl-chip__action" title="Clear text">
|
<button type="button" class="mdl-chip__action" title="Clear text">
|
||||||
<i class="material-icons">clear</i>
|
<i class="material-icons">clear</i>
|
||||||
|
|
|
@ -22,6 +22,7 @@ module.exports = function(Client) {
|
||||||
if(this.payMethod && !this.salesPerson) err();
|
if(this.payMethod && !this.salesPerson) err();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Client.validatesLengthOf('iban', {allowNull: true, min: 23, max: 23});
|
||||||
// Hooks
|
// Hooks
|
||||||
|
|
||||||
Client.observe('before save', function(ctx, next) {
|
Client.observe('before save', function(ctx, next) {
|
||||||
|
|
Loading…
Reference in New Issue