mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update CheckboxSetField.php
Updated example to work in api - as DropdownField does.
This commit is contained in:
parent
0d3b55645a
commit
907944cdf3
@ -6,18 +6,18 @@
|
||||
* the same.
|
||||
*
|
||||
* Example:
|
||||
* <code php>
|
||||
* <code>
|
||||
* new CheckboxSetField(
|
||||
* $name = "topics",
|
||||
* $title = "I am interested in the following topics",
|
||||
* $source = array(
|
||||
* "1" => "Technology",
|
||||
* "2" => "Gardening",
|
||||
* "3" => "Cooking",
|
||||
* "4" => "Sports"
|
||||
* ),
|
||||
* $value = "1"
|
||||
* )
|
||||
* $name = "topics",
|
||||
* $title = "I am interested in the following topics",
|
||||
* $source = array(
|
||||
* "1" => "Technology",
|
||||
* "2" => "Gardening",
|
||||
* "3" => "Cooking",
|
||||
* "4" => "Sports"
|
||||
* ),
|
||||
* $value = "1"
|
||||
* );
|
||||
* </code>
|
||||
*
|
||||
* <b>Saving</b>
|
||||
|
Loading…
x
Reference in New Issue
Block a user