diff --git a/API.md b/API.md index df9fd90..b52f98c 100644 --- a/API.md +++ b/API.md @@ -1,6 +1,6 @@ API === -**Add Valid Message (error, success) for validation `required`**
+### **Add Valid Message (error, success) for validation `required`**
`required-error-message` and `required-success-message` ```html @@ -16,7 +16,7 @@ API --> ``` -**Add Valid Message (error, success) for validation `email`**
+### **Add Valid Message (error, success) for validation `email`**
`email-error-message` and `email-success-message` ```html @@ -29,7 +29,7 @@ API email-success-message="Good Email"/> ``` -**Use Default Valid Message**
+### **Use Default Valid Message**
*you don't need to give valid message* ```html @@ -38,7 +38,7 @@ API ``` -**Don't show the Valid Message `no-validation-message="true"`** +### **Don't show the Valid Message `no-validation-message="true"`** ```html @@ -47,14 +47,14 @@ API ``` -**Add Valid Callback Function, `invalid-callback` & `valid-callback`** +### **Add Valid Callback Function, `invalid-callback` & `valid-callback`** ```html ``` -**Select the validation method `watch` `blur` `submit` `submit-only`, default as `watch`**
+### **Select the validation method `watch` `blur` `submit` `submit-only`, default as `watch`**
`validationProvider.validate(form).success(callback).error(callback)` use callback to continue your submit ```html @@ -109,7 +109,7 @@ API ``` -**Setup a new Validation `setExpression()` `setDefaultMsg()` with `RegExp` or `Function` in config phase** +### **Setup a new Validation `setExpression()` `setDefaultMsg()` with `RegExp` or `Function` in config phase** ```html @@ -161,8 +161,8 @@ angular.module('yourApp', ['validation']) }]); ``` -**Check form whether valid, return `true` if valid. `checkValid()`**
-**Reset the specific Form. `reset()`** +### **Check form whether valid, return `true` if valid. `checkValid()`**
+### **Reset the specific Form. `reset()`** ```html
@@ -192,7 +192,7 @@ angular.module('yourApp', ['validation']) }; ``` -**Set the valid/invalid message style CSS** +### **Set the valid/invalid message style CSS** ```html

Your valid message here

@@ -209,7 +209,7 @@ angular.module('yourApp', ['validation']) } ``` -**Custom the valid/invalid message style HTML in `.config()`,**
+### **Custom the valid/invalid message style HTML in `.config()`,**
`setErrorHTML(func)` `setSuccessHTML(func)`, input should be a `function` and given `parameter` which is the valid/invalid message declared in `getDefaultMsg()`,and finally return the HTML code @@ -227,7 +227,7 @@ in `getDefaultMsg()`,and finally return the HTML code }]); ``` -**disable/enable show success/error message**
+### **disable/enable show success/error message**
`default: true`
Easily disable success/error message @@ -239,7 +239,7 @@ Easily disable success/error message }]); ``` -**multiple validators**
+### **multiple validators**
use commar as splitter ```html