Close button
Twitter bootstrap Documentation
Example
Twitter bootstrap Documentation
- Result
- Source
<?php
echo $this->formButton()->renderSpec(['options' => ['close' => true]], '');
Disabled state
Twitter bootstrap Documentation
- Result
- Source
<?php
echo $this->formButton()->renderSpec([
'options' => ['close' => true],
'attributes' => ['disabled' => true],
], '');
White variant
Twitter bootstrap Documentation
- Result
- Source
<?php
echo $this->formButton()->renderSpec([
'options' => ['close' => true],
'attributes' => ['class' => 'btn-close-white'],
], '');
echo $this->formButton()->renderSpec([
'options' => ['close' => true],
'attributes' => ['disabled' => true, 'class' => 'btn-close-white'],
], '');