Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (44 sloc) 1.15 KB
<?php
/**
* @link https://github.com/MacGyer/yii2-materializecss
* @copyright Copyright (c) 2016 ... MacGyer for pluspunkt coding
* @license https://github.com/MacGyer/yii2-materializecss/blob/master/LICENSE
*/
namespace macgyer\yii2materializecss\widgets\form;
use macgyer\yii2materializecss\widgets\Button;
/**
* SubmitButton renders an HTML submit button.
*
* For details on how buttons are being created, see [[Button]].
*
* @see https://materializecss.com/buttons.html#submit
* @author Christoph Erdmann <yii2-materializecss@pluspunkt-coding.de>
* @package widgets
* @subpackage form
* @since 1.0.8
*/
class SubmitButton extends Button
{
/**
* @var string the label on the button. If you do not want a label text to be rendered, set this options to "false".
*/
public $label = 'Submit';
/**
* Initializes the widget.
*/
public function init()
{
$this->tagName = 'button';
$this->options['type'] = 'submit';
parent::init();
}
/**
* Executes the widget.
*
* @return string the rendered markup.
*/
public function run()
{
return parent::run();
}
}