Merge pull request #29 from WinterSilence/patch-2

Remove redundand BaseHtml::$dataAttributes
This commit is contained in:
simialbi 2021-12-20 08:29:47 +01:00 committed by GitHub
commit 622d200cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,13 +27,6 @@ abstract class BaseHtml extends \yii\helpers\Html
* @see getId() * @see getId()
*/ */
public static $autoIdPrefix = 'i'; public static $autoIdPrefix = 'i';
/**
* @var array list of tag attributes that should be specially handled when their values are of array type.
* In particular, if the value of the `data` attribute is `['name' => 'xyz', 'age' => 13]`, two attributes
* will be generated instead of one: `data-name="xyz" data-age="13"`.
* @since 2.0.3
*/
public static $dataAttributes = ['data', 'data-ng', 'ng', 'aria'];
/** /**