TbHtml::resetButton PHP Method

resetButton() public static method

Generates a reset button.
public static resetButton ( string $label = 'Reset', array $htmlOptions = [] ) : string
$label string the button label
$htmlOptions array additional HTML attributes.
return string the generated button.
    public static function resetButton($label = 'Reset', $htmlOptions = array())
    {
        return self::btn(self::BUTTON_TYPE_RESET, $label, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
?>
        <?php 
echo $form->textFieldControlGroup($model, 'append', array('append' => '.00'));
?>
        <?php 
echo $form->checkBoxControlGroup($model, 'disabledCheckbox', array('disabled' => true));
?>
        <?php 
echo $form->inlineCheckBoxListControlGroup($model, 'inlineCheckboxes', array('1', '2', '3'));
?>
        <?php 
echo $form->checkBoxListControlGroup($model, 'checkboxes', array('Option one is this and that—be sure to include why it\'s great', 'Option two can also be checked and included in form results', 'Option three can—yes, you guessed it—also be checked and included in form results'), array('help' => '<strong>Note:</strong> Labels surround all the options for much larger click areas.'));
?>
        <?php 
echo $form->radioButtonControlGroup($model, 'radioButton');
?>
        <?php 
echo $form->radioButtonListControlGroup($model, 'radioButtons', array('Option one is this and that—be sure to include why it\'s great', 'Option two can is something else and selecting it will deselect option one'));
?>
     
    </fieldset>
     
    <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset')));
?>
     
    <?php 
$this->endWidget();
?>
</div>
    
All Usage Examples Of TbHtml::resetButton
TbHtml