Rename Toggle Button YiiBootstrap

To rename ToggleButton YiiBootstrap label,

just add ‘enabledLabel’ and ‘disabledLabel’ to an array. Example:

//in view/_form

<?php echo $form->toggleButtonRow($model,’Status’, array(‘enabledLabel’ => ‘Active’,’disabledLabel’ => ‘Inactive’, ‘width’ => 150,)); ?>

Iklan