Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 1c0132b

Browse files
committed
doc: add new validation and overflow handler doc
1 parent c3db1a8 commit 1c0132b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ const validationList = [
106106
message:'تاریخ باید تنها در قرن 13 شمسی باشد'
107107
},
108108
{
109-
validator:(inputedText, valueObject, valueText)=>{
110-
//you can use raw inputed text or formatted text in expected value in argumants
109+
validator:({text, inputObject, valueObject, valueText})=>{
110+
//you can use raw imputed text or formatted text in expected value in arguments
111111
//you have access to both jalali and gregorian date object here in valueObject
112+
//inputObject is a object contain imputed day & month & year unprocessed base on format so it have value before date imputed completely
112113
// remember valueObject and valueText are both empty and null when date is incomplete
113-
//if you want to validate incomplete date you can use inputedText
114+
//if you want to validate incomplete date you can use inputText
114115
return valueObject.jalali.day == 15;
115116
},
116117
message:'باید تاریخ حتما 15 ماه انتخاب شود'

0 commit comments

Comments
 (0)