2021-07-09 17:53:24 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace yiiunit\extensions\bootstrap5\data;
|
|
|
|
|
|
|
|
use yii\bootstrap5\ActiveField;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A customized extension from ActiveField
|
|
|
|
*
|
|
|
|
* @see \yiiunit\extensions\bootstrap5\ActiveFieldTest::testHorizontalCssClassesOverride()
|
|
|
|
*
|
|
|
|
* @author Michael Härtl <haertl.mike@gmail.com>
|
|
|
|
*/
|
|
|
|
class ExtendedActiveField extends ActiveField
|
|
|
|
{
|
2024-03-28 16:27:15 +08:00
|
|
|
public $horizontalCssClasses = [
|
2021-07-09 17:53:24 +08:00
|
|
|
'offset' => 'col-md-offset-4',
|
|
|
|
'label' => 'col-md-4',
|
|
|
|
'wrapper' => 'col-md-6',
|
|
|
|
'error' => 'col-md-3',
|
|
|
|
'hint' => 'col-md-3',
|
|
|
|
];
|
|
|
|
}
|