|
|
@ -17,7 +17,7 @@ use yii\helpers\Html; |
|
|
|
* |
|
|
|
* |
|
|
|
* ```php |
|
|
|
* ```php |
|
|
|
* // a button group with items configuration |
|
|
|
* // a button group with items configuration |
|
|
|
* echo ButtonGroup::::widget([ |
|
|
|
* echo ButtonGroup::widget([ |
|
|
|
* 'buttons' => [ |
|
|
|
* 'buttons' => [ |
|
|
|
* ['label' => 'A'], |
|
|
|
* ['label' => 'A'], |
|
|
|
* ['label' => 'B'], |
|
|
|
* ['label' => 'B'], |
|
|
@ -25,7 +25,7 @@ use yii\helpers\Html; |
|
|
|
* ]); |
|
|
|
* ]); |
|
|
|
* |
|
|
|
* |
|
|
|
* // button group with an item as a string |
|
|
|
* // button group with an item as a string |
|
|
|
* echo ButtonGroup::::widget([ |
|
|
|
* echo ButtonGroup::widget([ |
|
|
|
* 'buttons' => [ |
|
|
|
* 'buttons' => [ |
|
|
|
* Button::widget(['label' => 'A']), |
|
|
|
* Button::widget(['label' => 'A']), |
|
|
|
* ['label' => 'B'], |
|
|
|
* ['label' => 'B'], |
|
|
|