You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,7 +321,7 @@ Final code (without spaces): `regex:YYWW:=^(0[9]|1[0-9]|2[0-9]|3[0-9])(5[0-2]|[0
321
321
<aname="alternate"></a>
322
322
Alternate Text on Validators
323
323
--------------------
324
-
Validators can now use alternate text instead of the usual defined locale $translate text, for example it could be useful to see a different text on a `<select>`instead of the usual "Field is Required". This works on all type of validators and is defined by adding `:alt=` at the end of any validators, it could be used on 1 or more validators directly inside the `validation=""` attribute. See the examples below.
324
+
Validators can now use alternate text instead of the usual defined locale $translate text, for example seeing "Field is Required" on a `<select>`might not always be useful, it might be more useful to see an alternate text that is "Please choose an option". Alternate text works on all type of validators and is defined by adding `:alt=` at the end of any validators, it could be used on 1 or more validators directly inside the `validation=""` attribute. See the examples below.
325
325
```html
326
326
<!-- You can use translate in your HTML -->
327
327
<!-- Example #1 with 1 alternate text on 1 of the 2 validators -->
@@ -363,13 +363,13 @@ All validators are written as `snake_case` but it's up to the user's taste and c
363
363
*`alpha_num_spaces` Only alpha-numeric characters (with latin & spaces) are present (a-z, A-Z, 0-9)
364
364
*`alpha_dash` Only alpha-numeric characters + dashes, underscores are present (a-z, A-Z, 0-9, _-)
0 commit comments