Skip to content

Commit

Permalink
Add Field->values documentation
Browse files Browse the repository at this point in the history
fixes #333 (#334)
  • Loading branch information
DarkSide666 committed Jul 17, 2018
1 parent da7db92 commit d426779
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ This value will also appear pre-filled inside a Form.
Specifies array containing all the possible options for the value.
You can set only to one of the values (loosely typed comparison is used).

.. php:attr:: values
Specifies array containing all the possible options for the value.
Similar with $enum, but difference is that this array is a hash array so
array keys will be used as values and array values will be used as titles
for these values.

.. php:attr:: mandatory
Set this to true if field value must not be NULL. You can set the NULL value to
Expand Down

0 comments on commit d426779

Please sign in to comment.