Difference between #11 and #12 of
Managing different Bootstrap form layouts with yii2-field-range extension.

Revision #12 has been created by Kartik V on Jun 1, 2014, 8:11:10 PM with the memo:

Updated description
« previous (#11)

Changes

Title unchanged

Managing different Bootstrap form layouts with yii2-field-range extension.

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

yii2, yii2-field-range, field, range, horizontal, vertical, bootstrap, form, layout, kartik, kartik-v, ActiveForm, ActiveField

Content changed

[...]
ActiveForm::end();
```

### Option 2 - Using other `ActiveForm` widgets
If you are using the `yii\bootstrap\ActiveForm` or `yii\widgets\ActiveForm`, there is no inbuilt option in the widget, but you can easily render the horizontal layout using the following approach. Basically you set `useAddons` property to `false`,
and set
tingup the CSS classes for horizontal layout, within `labelOptions`, `widgetContainer`, and `errorContainer` as shown below:


```php
<?php
use yii\widgets\ActiveForm;
[...]
0 0
37 followers
Viewed: 31 656 times
Version: 2.0
Category: How-tos
Written by: Kartik V
Last updated by: Kartik V
Created on: Jun 1, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history