adopted-ember-addons / adopted-ember-addons/ember-cp-validations

Feature request: support success message

Đang mở
#451 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
439
Fork
172
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Apologies if this was already suggested. If you wanted to show a success message as well as a failure message:

```js
validator('presence', {
presence: true,
message: 'this is not right',
successMessage: 'this looks good!'
}),
```

```hbs
{{#if (v-get user "prop" "isInvalid")}}
{{v-get user "prop" "message"}}
{{else}}
{{v-get user "prop" "successMessage"}}
{{/if}}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.