mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 20:59:12 +08:00
Fix #3472: Configurable option to encode spaces in dropdowns
This commit is contained in:
@@ -34,7 +34,7 @@ Upgrade from Yii 2.0 Beta
|
||||
the `keyPrefix` property of the cache component to use some unique string.
|
||||
Previously, this property was automatically assigned with a unique string.
|
||||
|
||||
* If you are using `yii\helpers\Html::dropDownList` or `yii\helpers\Html::listBox`, a new parameter
|
||||
`encodeSpaces` is now available within the `options` array. This defaults to `false`. If
|
||||
set to `true` all spaces in the rendered option value and prompt will be replaced with ` `
|
||||
the HTML non breaking space character.
|
||||
* If you are using `dropDownList`, `listBox`, `activeDropDownList`, or `activeListBox`, in the
|
||||
yii\helpers\Html class, a new parameter `encodeSpaces` is now available within the `options` array.
|
||||
This defaults to `false`. If this is set to `true` all spaces in the rendered option value and prompt
|
||||
will be replaced with ` `, the HTML non breaking space character.
|
||||
|
||||
Reference in New Issue
Block a user