Ease Framework Twitter Bootstrap 4 Support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
648 B

<?php
namespace Ease\TWB4;
/**
* Odesílací tlačítko formuláře Twitter Bootstrapu.
*/
class SubmitButton extends \Ease\Html\ButtonTag
{
/**
* Odesílací tlačítko formuláře Twitter Bootstrapu.
*
* @param string $value vracená hodnota
* @param string $type primary|info|success|warning|danger|inverse|link
*/
public function __construct($value = null, $type = null, $properties = [])
{
if (is_null($type)) {
$properties['class'] = 'btn';
} else {
$properties['class'] = 'btn btn-'.$type;
}
parent::__construct($value, $properties);
}
}