components/ActiveForm.php
/**
     * Change the configuration of the active field and form based on the horizontal inputs.
     *
     * Bootstrap 4 Example Output:
     *
     * ```php
     * <div class="form-group row">
     *     <label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
     *     <div class="col-sm-10">
     *         <input type="email" class="form-control" id="inputEmail3" placeholder="Email">
     *     </div>
     * </div>
     * ```
     */
Change the configuration of the active field and form based on the horizontal inputs.
Bootstrap 4 Example Output.


Change the configuration of the active field and form based on the horizontal inputs . Bootstrap 4 Example Output .
protected function provideHorizontalLayout()
    {
        Html::addCssClass($this->options, ['class' => 'form-group']);
        $this->fieldConfig = [
            'options' => [
                'class' => 'form-group row',
            ],
            'labelOptions' => [
                'class' => $this->horizontalLabelClass . ' col-form-label',
            ],
            'template' => str_replace('{horizontalInputClass}', $this->horizontalInputClass, $this->horizontalTemplate),
        ];
    }
protected function provideHorizontalLayout ( ) { Html :: addCssClass ( $ this -> options , [ 'class' => 'form-group' ] ) ; $ this -> fieldConfig = [ 'options' => [ 'class' => 'form-group row' , ] , 'labelOptions' => [ 'class' => $ this -> horizontalLabelClass . ' col-form-label' , ] , 'template' => str_replace ( '{horizontalInputClass}' , $ this -> horizontalInputClass , $ this -> horizontalTemplate ) , ] ; }
Change the configuration of the active field and form based on the horizontal inputs.
Change the configuration of the active field and form based on the horizontal inputs .