@@ -320,17 +320,17 @@ you can pass the class name and the method as an array.
320
320
Available Options
321
321
-----------------
322
322
323
- callback
324
- ~~~~~~~~
323
+ `` callback ``
324
+ ~~~~~~~~~~~~
325
325
326
326
**type **: ``string|array|Closure ``
327
327
328
328
This is a callback method that can be used instead of the `choices `_ option
329
329
to return the choices array. See
330
330
`Supplying the Choices with a Callback Function `_ for details on its usage.
331
331
332
- choices
333
- ~~~~~~~
332
+ `` choices ``
333
+ ~~~~~~~~~~~
334
334
335
335
**type **: ``array `` [:ref: `default option <validation-default-option >`]
336
336
@@ -340,8 +340,8 @@ will be matched against this array.
340
340
341
341
.. include :: /reference/constraints/_groups-option.rst.inc
342
342
343
- max
344
- ~~~
343
+ `` max ``
344
+ ~~~~~~~
345
345
346
346
**type **: ``integer ``
347
347
@@ -350,8 +350,8 @@ to force no more than XX number of values to be selected. For example, if
350
350
``max `` is 3, but the input array contains 4 valid items, the validation
351
351
will fail.
352
352
353
- maxMessage
354
- ~~~~~~~~~~
353
+ `` maxMessage ``
354
+ ~~~~~~~~~~~~~~
355
355
356
356
**type **: ``string `` **default **: ``You must select at most {{ limit }} choices. ``
357
357
@@ -367,8 +367,8 @@ Parameter Description
367
367
``{{ value }} `` The current (invalid) value
368
368
================= ============================================================
369
369
370
- message
371
- ~~~~~~~
370
+ `` message ``
371
+ ~~~~~~~~~~~
372
372
373
373
**type **: ``string `` **default **: ``The value you selected is not a valid choice. ``
374
374
@@ -385,8 +385,8 @@ Parameter Description
385
385
``{{ value }} `` The current (invalid) value
386
386
================= ============================================================
387
387
388
- min
389
- ~~~
388
+ `` min ``
389
+ ~~~~~~~
390
390
391
391
**type **: ``integer ``
392
392
@@ -395,8 +395,8 @@ to force at least XX number of values to be selected. For example, if
395
395
``min `` is 3, but the input array only contains 2 valid items, the validation
396
396
will fail.
397
397
398
- minMessage
399
- ~~~~~~~~~~
398
+ `` minMessage ``
399
+ ~~~~~~~~~~~~~~
400
400
401
401
**type **: ``string `` **default **: ``You must select at least {{ limit }} choices. ``
402
402
@@ -412,8 +412,8 @@ Parameter Description
412
412
``{{ value }} `` The current (invalid) value
413
413
================= ============================================================
414
414
415
- multiple
416
- ~~~~~~~~
415
+ `` multiple ``
416
+ ~~~~~~~~~~~~
417
417
418
418
**type **: ``boolean `` **default **: ``false ``
419
419
@@ -422,8 +422,8 @@ of a single, scalar value. The constraint will check that each value of
422
422
the input array can be found in the array of valid choices. If even one
423
423
of the input values cannot be found, the validation will fail.
424
424
425
- multipleMessage
426
- ~~~~~~~~~~~~~~~
425
+ `` multipleMessage ``
426
+ ~~~~~~~~~~~~~~~~~~~
427
427
428
428
**type **: ``string `` **default **: ``One or more of the given values is invalid. ``
429
429
0 commit comments