Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4941db1e
Commit
4941db1e
authored
Nov 21, 2013
by
Andrea Panattoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checkboxlist documentation fix
"Item" parameter keys are the values of the checkbox list, while the values are the checkbox labels.
parent
576d4e8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BaseHtml.php
framework/yii/helpers/BaseHtml.php
+2
-2
ActiveField.php
framework/yii/widgets/ActiveField.php
+1
-1
No files found.
framework/yii/helpers/BaseHtml.php
View file @
4941db1e
...
@@ -727,7 +727,7 @@ class BaseHtml
...
@@ -727,7 +727,7 @@ class BaseHtml
* @param string $name the name attribute of each checkbox.
* @param string $name the name attribute of each checkbox.
* @param string|array $selection the selected value(s).
* @param string|array $selection the selected value(s).
* @param array $items the data item used to generate the checkboxes.
* @param array $items the data item used to generate the checkboxes.
* The array
keys are the labels, while the array value
s are the corresponding checkbox values.
* The array
values are the labels, while the array key
s are the corresponding checkbox values.
* @param array $options options (name => config) for the checkbox list container tag.
* @param array $options options (name => config) for the checkbox list container tag.
* The following options are specially handled:
* The following options are specially handled:
*
*
...
@@ -1253,7 +1253,7 @@ class BaseHtml
...
@@ -1253,7 +1253,7 @@ class BaseHtml
* @param string $attribute the attribute name or expression. See [[getAttributeName()]] for the format
* @param string $attribute the attribute name or expression. See [[getAttributeName()]] for the format
* about attribute expression.
* about attribute expression.
* @param array $items the data item used to generate the checkboxes.
* @param array $items the data item used to generate the checkboxes.
* The array
keys are the labels, while the array value
s are the corresponding checkbox values.
* The array
values are the labels, while the array key
s are the corresponding checkbox values.
* Note that the labels will NOT be HTML-encoded, while the values will.
* Note that the labels will NOT be HTML-encoded, while the values will.
* @param array $options options (name => config) for the checkbox list. The following options are specially handled:
* @param array $options options (name => config) for the checkbox list. The following options are specially handled:
*
*
...
...
framework/yii/widgets/ActiveField.php
View file @
4941db1e
...
@@ -503,7 +503,7 @@ class ActiveField extends Component
...
@@ -503,7 +503,7 @@ class ActiveField extends Component
* As a result, the corresponding submitted value is an array.
* As a result, the corresponding submitted value is an array.
* The selection of the checkbox list is taken from the value of the model attribute.
* The selection of the checkbox list is taken from the value of the model attribute.
* @param array $items the data item used to generate the checkboxes.
* @param array $items the data item used to generate the checkboxes.
* The array
keys are the labels, while the array value
s are the corresponding checkbox values.
* The array
values are the labels, while the array key
s are the corresponding checkbox values.
* Note that the labels will NOT be HTML-encoded, while the values will.
* Note that the labels will NOT be HTML-encoded, while the values will.
* @param array $options options (name => config) for the checkbox list. The following options are specially handled:
* @param array $options options (name => config) for the checkbox list. The following options are specially handled:
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment