No clean way to set id in some bootstrap widgets (i.e. buttons)

Issue #209 new
Dan van Kley created an issue

I may have just missed how this is supposed to be done, but I assume it would be something like this:

<?php $loginButton = $this->widget('bootstrap.widgets.TbButton', array(
    'loadingText'=>'Checking Login Status...',
)); ?>

which would work for normal Yii widgets but seems to be missing for some bootstrap widgets, such as buttons. I suggest adding something like this at the top of TbButton.createButton():

    if (isset($this->id)) {
        $this->htmlOptions['id'] = $this->id;

Comments (0)

  1. Log in to comment