I
I
Igor +2019-02-07 17:23:52
Yii
Igor +, 2019-02-07 17:23:52

Html::listBox replace with buttons in yii2?

<?= \yii\helpers\Html::listBox('sx-offer', $offer->shopProduct->id, $selectData, [
'size' => 1,
'id' => 'sx-offer',
]); ?>
Trying to replace Html::listBox with buttons like this
<?= \yii\bootstrap\ButtonGroup::widget([
'buttons' => [
['label' => 'A'],
['label' => 'B'],
['label' => 'C', 'visible' => false],
]
]);
?>
How to implement it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
morricone85, 2019-02-07
@morricone85

you can write on pure bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question