Last active
November 11, 2016 12:40
-
-
Save PrplHaz4/6970887 to your computer and use it in GitHub Desktop.
Creating a confirmation dialog box for a Yii submit button (CHtml::submitButton, CHtml::button, YiiBooster TbButton)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// YiiBooster TbButton | |
$this->widget('bootstrap.widgets.TbButton',array( | |
'label'=>'Make some action!', | |
'buttonType'=>'submit', | |
'visible'=>true, | |
'type' => 'primary', | |
'size' => '', | |
'icon' => 'ok', | |
'htmlOptions' => array( | |
'name'=>'ActionButton', | |
'confirm' => 'Are you sure you\'d like to submit this action?', | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment