helpers\BaseHtml $dataAttributes

$dataAttributes public static property (available since version 2.0.3)

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".

public static array $dataAttributes = ['data', 'data-ng', 'ng']
doc_Yii
2016-10-30 17:04:48
Comments
Leave a Comment

Please login to continue.