芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/yiisoft/yii2-bootstrap4/src/Button.php
'Action', * 'options' => ['class' => 'btn-lg'], * ]); * ``` * @see https://getbootstrap.com/docs/4.5/components/buttons/ * @author Antonio Ramirez
*/ class Button extends Widget { /** * @var string the tag to use to render the button */ public $tagName = 'button'; /** * @var string the button label */ public $label = 'Button'; /** * @var bool whether the label should be HTML-encoded. */ public $encodeLabel = true; /** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); $this->clientOptions = false; Html::addCssClass($this->options, ['widget' => 'btn']); } /** * {@inheritdoc} */ public function run() { $this->registerPlugin('button'); return Html::tag($this->tagName, $this->encodeLabel ? Html::encode($this->label) : $this->label, $this->options); } }