yii2-bootstrap4
yii2-bootstrap4 copied to clipboard
Yii 2 Bootstrap 4 Extension
```php Tabs::widget([ 'renderTabContent' => false, 'items' => [ [ 'label' => 'Tab 1', 'url' => ['/default/index'], ], [ 'label' => 'Tab 2', 'url' => ['/default/page2'], ], ] ]); ``` The...
```php class TestModel extends Model { public $myfield; } $model = new TestModel([ 'myfield' => 1 ]); $model->addError('myfield', 'Test ERROR'); $form = ActiveForm::begin(); echo $form->field($model, 'myfield')->radioList([1 => 1, 2 =>...
```php class TestModel extends Model { public $myfield; } $model = new TestModel(['myfield' => 1]); $form = ActiveForm::begin(); echo $form->field($model, 'myfield')->radioList([ 1 => 1, 2 => 2]); ``` Produce this...
Try to configure the NavBar widget to support items outside the collapse Example: https://www.codeply.com/go/SJia0JtI1T Seems to be unsupported in NarBar.init()
Missing inputOptions in \yii\bootstrap4\ActiveField::staticControl ```php public function staticControl($options = []) { + $options = array_merge($this->inputOptions, $options); $this->adjustLabelFor($options); $this->parts['{input}'] = Html::activeStaticControl($this->model, $this->attribute, $options); return $this; } ``` Yii version - 2.0.23...
Something that was already bugging me with yii2-bootstrap, and is now even "worse", is the developer experience when using the Yii2 bootstrap packages. Take for instance the Progress component. Even...
https://github.com/yiisoft/yii2-bootstrap4/blob/master/docs/guide/assets-setup.md#compiling-from-the-sass-files Here we're implying that in order to be able to modify bootstrap CSS, we _should not_ install bootstrap from `npm`, and that we _should_ maintain it manually instead. The...
Currently classes use hardcoded heading tags for title, for example [`h5` in `Modal`](https://github.com/yiisoft/yii2-bootstrap4/blob/a0280a6caefbf153ab49664c9ef129675dd02040/src/Modal.php#L179). Would it possible to have heading tag customisable where appropriate? According to [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements): > Avoid skipping...
| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ✔️ | Breaks BC? | ❌
### What steps will reproduce the problem? ```php use yii\bootstrap4\Html; ``` ### What's expected? Checkbox with custom BS4 styling. ### What do you get instead? Checkbox with legacy Yii2 styling...