Answer the question
In order to leave comments, you need to log in
\yii\bootstrap\Button::widget and how to send value?
Such a situation has arisen.
There is a button:
<?=\yii\bootstrap\Button::widget([
'label' => Yii::t('app', 'Add to list'),
'options' => ['class' => 'btn btn_small btn_green'],
]);?>
Answer the question
In order to leave comments, you need to log in
It's sad... to replace this:
on this
<?=\yii\bootstrap\Button::widget([
'label' => Yii::t('app', 'Add to list'),
'options' => ['class' => 'btn btn_small btn_green'],
]);?>
It seems to me that Button was inherited from Widget and it said
/**
* @var array the options for the underlying Bootstrap JS plugin.
* Please refer to the corresponding Bootstrap plugin Web page for possible options.
* For example, [this page]( getbootstrap.com/javascript/#modals) shows
* how to use the "Modal" plugin and the supported options (eg "remote").
*/
public $clientOptions = [];
In short: dig in the direction of clientOptions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question